Skip to content

How do I change how indentation is parsed? #856

Discussion options

You must be logged in to vote

It looks like you want JSX and markdown mixed?
If so, use consider using MDX directly. https://github.com/mdx-js/mdx

If you want to go into custom parsing (I won't recommend it), you could use how micromark jsx is handled for MDX as a reference https://github.com/micromark/micromark-extension-mdx-jsx

this is how it behaves https://codesandbox.io/s/mdx-2-component-block-parsing-p69f3

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@NullVoxPopuli
Comment options

@wooorm
Comment options

@NullVoxPopuli
Comment options

Answer selected by ChristianMurphy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants