Skip to content

Simple example returns unexpected <head> tag #130

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

You must be logged in to vote

You're missing the fragment option: https://github.com/rehypejs/rehype/tree/main/packages/rehype-parse#optionsfragment

rehype-parse expects a whole document by default.

Replies: 1 comment

Comment options

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