feat: cleaning up newer posts using old shortcode
also adding markdown-it-attrs to add attrs to various markdown elements!
This commit is contained in:
parent
d59b3767f4
commit
20fcf37d3a
9 changed files with 47 additions and 100 deletions
|
@ -4,6 +4,7 @@ import markdownItPrism from "markdown-it-prism";
|
|||
import markdownItAbbr from "markdown-it-abbr";
|
||||
import markdownItAnchor from "markdown-it-anchor";
|
||||
import markdownItImplicitFigures from "markdown-it-image-figures";
|
||||
import markdownItAttrs from "markdown-it-attrs";
|
||||
|
||||
const markdown = markdownIt({
|
||||
html: true,
|
||||
|
@ -19,7 +20,8 @@ const markdown = markdownIt({
|
|||
})
|
||||
.use(markdownItPrism, {
|
||||
defaultLanguage: "plaintext",
|
||||
});
|
||||
})
|
||||
.use(markdownItAttrs);
|
||||
|
||||
markdown.renderer.rules.footnote_block_open = (_tokens, _idx, options) => {
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue