Merge branch 'main' into feature/customthemes

This commit is contained in:
Ole Eskild Steensen 2022-03-22 22:17:23 +01:00
commit 061618e88a
2 changed files with 5 additions and 2 deletions

View File

@ -91,7 +91,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) {
if (p1.indexOf("],[") > -1 || p1.indexOf('"$"')>-1) {
return match;
}
const [fileName, linkTitle] = p1.split("|");

View File

@ -10,9 +10,12 @@
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script>
MathJax = {
MathJax = {
tex: {
inlineMath: [["$", "$"]]
},
options: {
skipHtmlTags: {'[-]': ['pre']}
}
};
</script>