From 8f130d65353cab5d19540897883c1a5e2841a6f9 Mon Sep 17 00:00:00 2001 From: Alexis Fourmaux Date: Wed, 26 Nov 2025 23:44:29 +0100 Subject: [PATCH] Ajoute js custom du parser MD en local --- .crossnote/config.js | 15 +++++++++++++++ .crossnote/head.html | 6 ++++++ .crossnote/parser.js | 12 ++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 .crossnote/config.js create mode 100644 .crossnote/head.html create mode 100644 .crossnote/parser.js diff --git a/.crossnote/config.js b/.crossnote/config.js new file mode 100644 index 0000000..80613c4 --- /dev/null +++ b/.crossnote/config.js @@ -0,0 +1,15 @@ +({ + katexConfig: { + "macros": {} +}, + + mathjaxConfig: { + "tex": {}, + "options": {}, + "loader": {} +}, + + mermaidConfig: { + "startOnLoad": false +}, +}) \ No newline at end of file diff --git a/.crossnote/head.html b/.crossnote/head.html new file mode 100644 index 0000000..079058b --- /dev/null +++ b/.crossnote/head.html @@ -0,0 +1,6 @@ + + \ No newline at end of file diff --git a/.crossnote/parser.js b/.crossnote/parser.js new file mode 100644 index 0000000..0f6b5a9 --- /dev/null +++ b/.crossnote/parser.js @@ -0,0 +1,12 @@ +({ + // Please visit the URL below for more information: + // https://shd101wyy.github.io/markdown-preview-enhanced/#/extend-parser + + onWillParseMarkdown: async function(markdown) { + return markdown; + }, + + onDidParseMarkdown: async function(html) { + return html; + }, +}) \ No newline at end of file