Skip to content

Commit

Permalink
multiple delimiters
Browse files Browse the repository at this point in the history
  • Loading branch information
xqdoo00o authored Nov 1, 2023
1 parent 5f3cd45 commit 8360990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4535,7 +4535,7 @@
});
md.inline.ruler.after("emphasis", "sup", superscript);
md.inline.ruler.after("emphasis", "sub", subscript);
md.use(texmath, { engine: katex, delimiters: "brackets" });
md.use(texmath, { engine: katex, delimiters: ["brackets", "dollars"] });
md.renderer.rules.link_open = (tokens, idx, options, env, self) => {
let aIndex = tokens[idx].attrIndex("target");
if (tokens[idx + 1] && tokens[idx + 1].type === "image") tokens[idx].attrPush(["download", ""]);
Expand Down

0 comments on commit 8360990

Please sign in to comment.