Skip to content

Spoilers #1134

Answered by ChristianMurphy
ARR4NN asked this question in Q&A
Discussion options

You must be logged in to vote

Heya @ARR4NN!
Your question is a bit vague, please see asking quality questions, for some ideas on how to frame questions to make it easier or more effective for others to help you: https://github.com/remarkjs/.github/blob/main/support.md

Spoilers are not a native feature of HTML or Markdown.
You could solve this from the HTML side with a custom element https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements
Or from the markdown side with a directive https://github.com/remarkjs/remark-directive

Then building you custom spoiler logic using those.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ChristianMurphy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants