mirror of
https://github.com/tcsenpai/obsidiangarden_netlify.git
synced 2025-06-07 05:05:20 +00:00
Merge branch 'main' into feature/customthemes
This commit is contained in:
commit
061618e88a
@ -91,7 +91,7 @@ module.exports = function(eleventyConfig) {
|
|||||||
eleventyConfig.addTransform('link', function(str) {
|
eleventyConfig.addTransform('link', function(str) {
|
||||||
return str && str.replace(/\[\[(.*?)\]\]/g, function(match, p1) {
|
return str && str.replace(/\[\[(.*?)\]\]/g, function(match, p1) {
|
||||||
//Check if it is an embedded excalidraw drawing or mathjax javascript
|
//Check if it is an embedded excalidraw drawing or mathjax javascript
|
||||||
if (p1.indexOf(",") > -1) {
|
if (p1.indexOf("],[") > -1 || p1.indexOf('"$"')>-1) {
|
||||||
return match;
|
return match;
|
||||||
}
|
}
|
||||||
const [fileName, linkTitle] = p1.split("|");
|
const [fileName, linkTitle] = p1.split("|");
|
||||||
|
@ -13,6 +13,9 @@
|
|||||||
MathJax = {
|
MathJax = {
|
||||||
tex: {
|
tex: {
|
||||||
inlineMath: [["$", "$"]]
|
inlineMath: [["$", "$"]]
|
||||||
|
},
|
||||||
|
options: {
|
||||||
|
skipHtmlTags: {'[-]': ['pre']}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user