From f4dca6dc79da0eb5abc940ebe97bdcd5e2db1954 Mon Sep 17 00:00:00 2001 From: Dustin Darcy Date: Fri, 20 Oct 2023 22:34:08 -0400 Subject: [PATCH 1/2] Additional markdown export modifications --- .gitignore | 2 +- scripts/markdown.export.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 04d3ac3b2..7bc9ea743 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,7 @@ node_modules/ .pnp.* # Testing -private/ +*private*/ # rust target/ diff --git a/scripts/markdown.export.js b/scripts/markdown.export.js index 72b6c239a..d6fd2d24a 100644 --- a/scripts/markdown.export.js +++ b/scripts/markdown.export.js @@ -11,6 +11,7 @@ var ExportMD = (function () { const turndownService = new TurndownService({ hr: '---', }) + .keep([`\\`]) .use(gfm) .addRule('code', { filter(node) { From 1f2fc88c78c9df4c3e1b01a38fc2a15e8db9f865 Mon Sep 17 00:00:00 2001 From: Dustin Darcy Date: Fri, 20 Oct 2023 22:40:58 -0400 Subject: [PATCH 2/2] updating user input selector to new div class as of 2023.10.20 --- scripts/export.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/export.js b/scripts/export.js index 939e3bd3e..45068dfee 100644 --- a/scripts/export.js +++ b/scripts/export.js @@ -157,7 +157,7 @@ async function exportInit() { } const SELECTOR = 'main div.group'; - const USER_INPUT_SELECTOR = 'div.empty\\:hidden'; + const USER_INPUT_SELECTOR = 'div.relative.flex.w-\\[calc\\(100\\%-50px\\)\\].flex-col.gizmo\\:w-full.lg\\:w-\\[calc\\(100\\%-115px\\)\\].gizmo\\:text-gizmo-gray-600.gizmo\\:dark\\:text-gray-300'; function processNode(node, replaceInUserInput = false) { let j = node.cloneNode(true);