Skip to content

rehype plugins can't pick md inside html #1939

Answered by wooorm
devanshj asked this question in Q&A
Discussion options

You must be logged in to vote

(Here's my failed attempt to test @leafac/rehype-shiki with only html but it apparently doesn't transform in either case idk why)

That, uhm, points at the most likely problem? If you can’t get a project to work in different examples, then maybe the problem is that project.
I verified that by trying another highlighters (rehype-highlight), which did work.

I’m guessing that this logic they have is way too strict and doesn’t account for <pre>s in <div>s.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@devanshj
Comment options

@wooorm
Comment options

@devanshj
Comment options

@wooorm
Comment options

@devanshj
Comment options

Answer selected by devanshj
Comment options

You must be logged in to vote
0 replies
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