Collapsible markdown inside <details><summary>...</summary></details> fails to render #22596
-
I used <details> and <summary> in a very vanilla GitHub Pages-enabled repo. On GitHub, the markdown in the collapsible section is rendered correctly. But on GitHub Pages, it is just a literal. The issue is mentioned Markdown inside and not being processed, and the suggested fix is:
That does indeed fix the rendering of the content, and I am fine with switching to kramdown, but it breaks the rendering of <details> and <summary> and the twirl-down. (So I rolled it back.) See the page at https://deepchar.github.io/, the repo at https://github.com/deepchar/deepchar.github.io and the StackOverflow version of this issue at https://stackoverflow.com/questions/52944720/content-of-collapsible-sections-detailssummary-renders-markdown-in-gith. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The question is now answered. In short, add
to _config.yml, which will render the site with CommonMark instead of kramdown. |
Beta Was this translation helpful? Give feedback.
-
Hi @bittlingmayer, We are happy you are here! Thank you for sharing your solution. We’re looking forward to seeing you around! Best, |
Beta Was this translation helpful? Give feedback.
-
This is a really cool function. I’m going to implement it somehow. Thanks for the post! |
Beta Was this translation helpful? Give feedback.
The question is now answered. In short, add
to _config.yml, which will render the site with CommonMark instead of kramdown.