You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parse inline HTML markup also, for things that cant' be defined in markdown directly, such as <time>, <span class="some-class">.
Motivation
Sometimes we want support raw-markup inline in markdown string, for things that can't be represented in markdown.
My use case is browser extension's localization messages, where I had to include a <time> element in a string.
<!-- input -->
hello <timedatetime="foo" style="ignored">foo</time> world <imgsrc="oh no" /><!-- output -->
hello <timedatetime="foo">foo</time> world
Alternatives
Some other much heavier library
Additional context
For simplicity, I think we can require well-formed XML, and leave rendering to users. As long as parsing is light (and told explicitly that it's unsafe), I think this can be a good addition.
The text was updated successfully, but these errors were encountered:
✨ Feature request
Parse inline HTML markup also, for things that cant' be defined in markdown directly, such as
<time>
,<span class="some-class">
.Motivation
Sometimes we want support raw-markup inline in markdown string, for things that can't be represented in markdown.
My use case is browser extension's localization messages, where I had to include a
<time>
element in a string.Example
Alternatives
Some other much heavier library
Additional context
For simplicity, I think we can require well-formed XML, and leave rendering to users. As long as parsing is light (and told explicitly that it's unsafe), I think this can be a good addition.
The text was updated successfully, but these errors were encountered: