diff --git a/.eleventy.js b/.eleventy.js index 4dac6e9..4fab3e7 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -82,6 +82,10 @@ module.exports = function(eleventyConfig) { eleventyConfig.addTransform('link', function(str) { return str && str.replace(/\[\[(.*?)\]\]/g, function(match, p1) { + //Check if it is an embedded excalidraw drawing + if(p1.indexOf("],[") > -1){ + return match; + } const [fileName, linkTitle] = p1.split("|"); let permalink = `/notes/${slugify(fileName)}`; @@ -120,4 +124,4 @@ module.exports = function(eleventyConfig) { passthroughFileCopy: true, }; -}; \ No newline at end of file +};