Skip to content

Custom Component differentiating inline Code vs block-level Code #2108

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

You must be logged in to vote

Depends on what you want, but generally I’d say, look at props. If you want to highlight code there is a class specifying that language.
Your last paragraph might work too, yeah.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@prmichaelsen
Comment options

Answer selected by xHomu
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