How to pass custom void elements to rehype-parse? #74
Answered
by
wooorm
AshtarCodes
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
wooorm
Nov 4, 2021
Replies: 1 comment 4 replies
-
No, there’s no such option. It’s not valid HTML if the non-voids are not closed. P.S. your input shows |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
AshtarCodes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, there’s no such option. It’s not valid HTML if the non-voids are not closed.
rehype-parse
is an HTML parser.I recommend using correct HTML, and thus closing your custom elements, so that both browsers and rehype can handle them.
P.S. your input shows
blueButton
and the like, which are also not valid custom HTML elements (they’d need to include a-
to become one)