Skip to content

Commit

Permalink
Update and re-export Marked (#66)
Browse files Browse the repository at this point in the history
* Re-export `Marked`

* Update marked

* Use gfmHeadingId

* Format

* Undo unrelated changes
  • Loading branch information
rojvv committed May 10, 2023
1 parent bf6adf8 commit 8a3481e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

export { emojify } from "https://deno.land/x/[email protected]/mod.ts";

export * as Marked from "https://esm.sh/[email protected]";
export * as Marked from "https://esm.sh/[email protected]";

export { gfmHeadingId } from "https://esm.sh/[email protected]";

export { default as Prism } from "https://esm.sh/[email protected]";

Expand Down
5 changes: 4 additions & 1 deletion mod.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import {
emojify,
gfmHeadingId,
htmlEscape,
katex,
Marked,
Prism,
sanitizeHtml,
} from "./deps.ts";
import { CSS, KATEX_CLASSES, KATEX_CSS } from "./style.js";
export { CSS, KATEX_CSS };
export { CSS, KATEX_CSS, Marked };

Marked.marked.use(gfmHeadingId());

class Renderer extends Marked.Renderer {
heading(
Expand Down

0 comments on commit 8a3481e

Please sign in to comment.