From 51edb4b55c72de1e95308fedc7dd2b44e2ec5d88 Mon Sep 17 00:00:00 2001 From: Ole Eskild Steensen Date: Tue, 15 Mar 2022 15:30:05 +0100 Subject: [PATCH] Update .eleventy.js --- .eleventy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eleventy.js b/.eleventy.js index 03d566c..6d23027 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -83,7 +83,7 @@ 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 or mathjax javascript - if (p1.indexOf("],[") > -1 || p1.indexOf('"$"')) { + if (p1.indexOf("],[") > -1 || p1.indexOf('"$"')>-1) { return match; } const [fileName, linkTitle] = p1.split("|");