diff --git a/deps.ts b/deps.ts index 3749cf8..56a40b2 100644 --- a/deps.ts +++ b/deps.ts @@ -5,11 +5,13 @@ /// /// -export { emojify } from "https://deno.land/x/emoji@0.2.1/mod.ts"; +export { emojify } from "https://deno.land/x/emoji@0.3.0/mod.ts"; -export * as Marked from "https://esm.sh/marked@5.0.1"; +export * as Marked from "https://esm.sh/marked@5.1.0/"; -export { gfmHeadingId } from "https://esm.sh/marked-gfm-heading-id@3.0.3"; +export { mangle } from "https://esm.sh/marked-mangle@v1.1.0/"; + +export { gfmHeadingId } from "https://esm.sh/marked-gfm-heading-id@3.0.4/"; export { default as Prism } from "https://esm.sh/prismjs@1.29.0"; @@ -17,4 +19,4 @@ export { default as sanitizeHtml } from "https://esm.sh/sanitize-html@2.8.1?targ export { escape as htmlEscape } from "https://esm.sh/he@1.2.0"; -export { default as katex } from "https://esm.sh/katex@0.16.4/dist/katex.mjs"; +export { default as katex } from "https://esm.sh/katex@0.16.8/dist/katex.mjs"; diff --git a/example/main.ts b/example/main.ts index 26fdd7a..2bd341f 100644 --- a/example/main.ts +++ b/example/main.ts @@ -1,4 +1,4 @@ -import { serve } from "https://deno.land/std@0.177.0/http/server.ts"; +import { serve } from "https://deno.land/std@0.192.0/http/server.ts"; import { CSS, KATEX_CSS, render } from "../mod.ts"; diff --git a/mod.ts b/mod.ts index b243c73..4246110 100644 --- a/mod.ts +++ b/mod.ts @@ -3,6 +3,7 @@ import { gfmHeadingId, htmlEscape, katex, + mangle, Marked, Prism, sanitizeHtml, @@ -10,6 +11,7 @@ import { import { CSS, KATEX_CLASSES, KATEX_CSS } from "./style.js"; export { CSS, KATEX_CSS, Marked }; +Marked.marked.use(mangle()); Marked.marked.use(gfmHeadingId()); class Renderer extends Marked.Renderer {