Update 02.10.2020
This commit is contained in:
parent
d0f5da7997
commit
af97e6dc9f
@ -20,17 +20,17 @@
|
|||||||
widget: "string"
|
widget: "string"
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
pattern: /{{< gallery dir=([a-zA-Z0-9]+) />}}/,
|
pattern: /{{< gallery dir="([a-zA-Z0-9]+)" />}}/,
|
||||||
fromBlock: function(match) {
|
fromBlock: function(match) {
|
||||||
return {
|
return {
|
||||||
username: dir[1],
|
username: dir[1],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
toBlock: function(obj) {
|
toBlock: function(obj) {
|
||||||
return `{{< gallery ${obj.dir} >}}`;
|
return `{{< gallery dir="${obj.dir}" />}}`;
|
||||||
},
|
},
|
||||||
toPreview: function(obj) {
|
toPreview: function(obj) {
|
||||||
return `{{< gallery ${obj.dir} >}}`;
|
return `{{< gallery dir="${obj.dir}" />}}`;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user