From f62d42fecd47cd9ee606b0e83b3ad6b80ffbc431 Mon Sep 17 00:00:00 2001 From: Jean-David Moisan Date: Sat, 19 Oct 2024 10:51:30 -0400 Subject: [PATCH] Fixed double admonitions (#161) Co-authored-by: Dean Ellis --- website/.config/markdownit-plugins/admonitions.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/website/.config/markdownit-plugins/admonitions.js b/website/.config/markdownit-plugins/admonitions.js index 8c32a3e0..22e97c71 100644 --- a/website/.config/markdownit-plugins/admonitions.js +++ b/website/.config/markdownit-plugins/admonitions.js @@ -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;