diff --git a/.codebook.toml b/.codebook.toml new file mode 100644 index 0000000..e030fa0 --- /dev/null +++ b/.codebook.toml @@ -0,0 +1,20 @@ +dictionaries = ["en_us"] +words = [ + "artifacting", + "gooden", + "lightningcss", + "lume", + "metas", + "mousepads", + "nolebase", + "pagefind", + "purgecss", + "repairability", + "rss", + "sindresorhus", + "vto", +] +flag_words = [] +ignore_paths = [] +ignore_patterns = [] +use_global = true diff --git a/_config.ts b/_config.ts index b219e5c..573a62e 100644 --- a/_config.ts +++ b/_config.ts @@ -26,7 +26,8 @@ import { BiDirectionalLinks } from "@nolebase/markdown-it-bi-directional-links"; import { default as mdItObsidianCallouts } from "markdown-it-obsidian-callouts"; // Additional external plugins -import toc from "https://deno.land/x/lume_markdown_plugins@v0.8.0/toc.ts"; +import toc from "lume_markdown_plugins/toc.ts"; +import footnotes from "lume_markdown_plugins/footnotes.ts"; import anchor from "npm:markdown-it-anchor"; import slugify from "npm:@sindresorhus/slugify"; diff --git a/deno.json b/deno.json index 45fd51b..f7cf7a8 100644 --- a/deno.json +++ b/deno.json @@ -4,7 +4,8 @@ "@nolebase/markdown-it-bi-directional-links": "npm:@nolebase/markdown-it-bi-directional-links@^2.15.0", "lume/": "https://cdn.jsdelivr.net/gh/lumeland/lume@3ca4e1ff0077bc5239d853e9efdc60889546ce30/", "markdown-it-obsidian-callouts": "https://deno.land/x/markdown_it_obsidian_callouts_lite@0.4.0/src/index.ts", - "html-validate": "npm:html-validate@9.4.1" + "html-validate": "npm:html-validate@9.4.1", + "lume_markdown_plugins/": "https://deno.land/x/lume_markdown_plugins@v0.8.0/" }, "tasks": { "lume": "echo \"import 'lume/cli.ts'\" | deno run --env-file=.env.dev -A -", diff --git a/deno.lock b/deno.lock index 326b98e..70ede20 100644 --- a/deno.lock +++ b/deno.lock @@ -45,6 +45,7 @@ "npm:markdown-it-anchor@*": "9.2.0_@types+markdown-it@14.1.2_markdown-it@14.1.0", "npm:markdown-it-attrs@4.3.1": "4.3.1_markdown-it@14.1.0", "npm:markdown-it-deflist@3.0.0": "3.0.0", + "npm:markdown-it-footnote@*": "4.0.0", "npm:markdown-it@14.1.0": "14.1.0", "npm:meriyah@6.0.5": "6.0.5", "npm:remove-markdown@0.6.0": "0.6.0", @@ -710,6 +711,9 @@ "markdown-it-deflist@3.0.0": { "integrity": "sha512-OxPmQ/keJZwbubjiQWOvKLHwpV2wZ5I3Smc81OjhwbfJsjdRrvD5aLTQxmZzzePeO0kbGzAo3Krk4QLgA8PWLg==" }, + "markdown-it-footnote@4.0.0": { + "integrity": "sha512-WYJ7urf+khJYl3DqofQpYfEYkZKbmXmwxQV8c8mO/hGIhgZ1wOe7R4HLFNwqx7TjILbnC98fuyeSsin19JdFcQ==" + }, "markdown-it@14.1.0": { "integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==", "dependencies": [ @@ -1169,6 +1173,8 @@ "https://deno.land/x/deno_dom@v0.1.49/src/dom/utils-types.ts": "96db30e3e4a75b194201bb9fa30988215da7f91b380fca6a5143e51ece2a8436", "https://deno.land/x/deno_dom@v0.1.49/src/dom/utils.ts": "bc429635e9204051ba1ecc1b212031b5ee7c6bcd95120c91bef696804aa67e74", "https://deno.land/x/deno_dom@v0.1.49/src/parser.ts": "e06b2300d693e6ae7564e53dfa5c9a9e97fdb8c044c39c52c8b93b5d60860be3", + "https://deno.land/x/lume_markdown_plugins@v0.8.0/footnotes.ts": "2e31ea45e68ce2156dcde85e83dd96d8285a0aede1aaa700bd7211b454d86544", + "https://deno.land/x/lume_markdown_plugins@v0.8.0/footnotes/mod.ts": "3e36f09f4cb41c0c11921c2803ab2d29756971f1287a1b097918ce6c0c24303a", "https://deno.land/x/lume_markdown_plugins@v0.8.0/toc.ts": "1fe2769056a022303b3871fc4b7be26b7738d44a31e5fd08debd527e9dc49ecc", "https://deno.land/x/lume_markdown_plugins@v0.8.0/toc/anchors.ts": "8a4a1c6b2c63156622695ceba57fa7100a6e5f109c9a383a1dcaf755233c8184", "https://deno.land/x/lume_markdown_plugins@v0.8.0/toc/mod.ts": "8c7aa6e1dcfabda4264503495a3875388108cd9a5a94b54853b45a8e8cba9f78", diff --git a/plugins/openInEditor.ts b/plugins/openInEditor.ts index bcf4aa3..427a849 100644 --- a/plugins/openInEditor.ts +++ b/plugins/openInEditor.ts @@ -41,7 +41,7 @@ function markdownItOpenInEditor(md: any) { const lineNumber = FRONTMATTER_LINE_CACHE[filePath] + (token.map ? token.map[0] : 1); - // Create a wrapper element with context to open the file in VS Code + // Create a wrapper element with context to open the file in the editor const clickableElementStart = `
`; return clickableElementStart +