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
I noticed that marked does not support anything like the markdown="1" attribute of other Markdown parsers. (see #488) and that after #1135, a blank line is required to switch to Markdown mode again.
While this works for things like <div>, it does not work for highlighting Markdown inside e.g. <p>.
It seems I can use the html() token in Renderer or Tokenizer to fix this, but I'm not sufficiently familiar with Marked's internals. Has anyone else figured this out?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I noticed that marked does not support anything like the
markdown="1"
attribute of other Markdown parsers. (see #488) and that after #1135, a blank line is required to switch to Markdown mode again.While this works for things like
<div>
, it does not work for highlighting Markdown inside e.g.<p>
.It seems I can use the
html()
token in Renderer or Tokenizer to fix this, but I'm not sufficiently familiar with Marked's internals. Has anyone else figured this out?Beta Was this translation helpful? Give feedback.
All reactions