Skip to content

Commit

Permalink
Fixed double admonitions (#161)
Browse files Browse the repository at this point in the history
Co-authored-by: Dean Ellis <[email protected]>
  • Loading branch information
Apostolique and dellis1972 authored Oct 19, 2024
1 parent 29f2a5c commit f62d42f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions website/.config/markdownit-plugins/admonitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,7 @@ function admonition(state, startLine, endLine, silent) {
/// Adds the admonition parsing plugin to markdown-it
////////////////////////////////////////////////////////////////////////////////
function admonitionPlugin(md) {
md.block.ruler.before("code", "admonition", admonition, {
alt: ["paragraph", "reference", "blockquote", "list"]
});
md.block.ruler.before("code", "admonition", admonition);
md.renderer.rules["admonition_open"] = render;
md.renderer.rules["admonition_title_open"] = render;
md.renderer.rules["admonition_title_close"] = render;
Expand Down

0 comments on commit f62d42f

Please sign in to comment.