Closed dessalines closed 5 years ago
This plugin uses fenced marking. Markup from link uses side marking. Those are different.
So markdown-it currently has no support for any of the most popular implementations of spoiler tags?
Default package supports only things described in commonmark spec + some github extensions. Everything else should be done via plugins. You may try to search one in npm or do your own, based on blockquote.
You can do it with the markdown-it-spoiler plugin, which has a slightly unconventional syntax compared to other implementations, but works just fine.
Here's how you'd use it:
!!Spoiler!!
It probably diverges from other implementations because it's easier to borrow from other markdown it plugins that use pairs of special chars like ++inserted++
or ==marked==
I see the standard for spoiler tags is:
or
>! spoiler !<
According to both reddit and https://meta.stackexchange.com/questions/1191/add-markdown-support-for-hidden-until-you-click-text-aka-spoilers . Has anyone used this container to make this yet?