Update 02.10.2020

This commit is contained in:
Denys Konovalov 2020-10-02 15:51:30 +02:00
parent 98ad250840
commit 2776c6e3f8

@ -20,17 +20,17 @@
widget: "string"
},
],
pattern: /{{< gallery dir=([a-zA-Z0-9]+) />}}/,
pattern: /{{< gallery dir="([a-zA-Z0-9]+)" />}}/,
fromBlock: function(match) {
return {
username: dir[1],
};
},
toBlock: function(obj) {
return `{{< gallery ${obj.dir} >}}`;
return `{{< gallery dir="${obj.dir}" />}}`;
},
toPreview: function(obj) {
return `{{< gallery ${obj.dir} >}}`;
return `{{< gallery dir="${obj.dir}" />}}`;
},
});
</script>