Skip to content

Commit f62d42f

Browse files
Fixed double admonitions (#161)
Co-authored-by: Dean Ellis <[email protected]>
1 parent 29f2a5c commit f62d42f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

website/.config/markdownit-plugins/admonitions.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,7 @@ function admonition(state, startLine, endLine, silent) {
196196
/// Adds the admonition parsing plugin to markdown-it
197197
////////////////////////////////////////////////////////////////////////////////
198198
function admonitionPlugin(md) {
199-
md.block.ruler.before("code", "admonition", admonition, {
200-
alt: ["paragraph", "reference", "blockquote", "list"]
201-
});
199+
md.block.ruler.before("code", "admonition", admonition);
202200
md.renderer.rules["admonition_open"] = render;
203201
md.renderer.rules["admonition_title_open"] = render;
204202
md.renderer.rules["admonition_title_close"] = render;

0 commit comments

Comments
 (0)