-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
L1 - brokenValid usage causes incorrect output OR a crash AND there is no known workaround for the issueValid usage causes incorrect output OR a crash AND there is no known workaround for the issuecategory: mixed content
Description
Hi,
First: thanks for writing this fantastic library!
My issue: I'm using Markdown in documentation for a project, and would like to use <div> tags inside of the Markdown to specify that certain sections should be hidden (or otherwise stylized).
For example:
# Title
This is some text.
<div class="toggle-hide">
## Hidden section
A hidden paragraph.
</div>
This text is visible.
Unfortunately, the Markdown content inside the <div> does not get rendered -- it's copied verbatim into the output.
Is there any way to configure marked.js to render Markdown inside of <div> tags? If not: can you point me in the right direction for how to add such an option? Or: can you recommend some alternate strategy for hiding (or toggling visibility of) sections of content?
Thanks!
pkerpedjiev, dehghani-mehdi, pron, RomuloPBenedetti, philmander and 12 more
Metadata
Metadata
Assignees
Labels
L1 - brokenValid usage causes incorrect output OR a crash AND there is no known workaround for the issueValid usage causes incorrect output OR a crash AND there is no known workaround for the issuecategory: mixed content