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 am trying to implement a blog with chakra-ui and markdown-it.
Now I can parse markdown file to HTML with markdown-it, and I renderer as normal HTML tag like <h1> without any style. But I want to custom style with chakra-ui instead of write CSS code.
How can I costom HTML tag to chakra-ui components. It seems like:
## h2
<Headingas={"h2"}>{...}</Heading>
I am trying to change md.renderer.rules but I doesn't work. So does any other way to impletment it.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
I am trying to implement a blog with
chakra-ui
andmarkdown-it
.Now I can parse markdown file to HTML with
markdown-it
, and I renderer as normal HTML tag like<h1>
without any style. But I want to custom style withchakra-ui
instead of write CSS code.How can I costom HTML tag to
chakra-ui
components. It seems like:## h2
I am trying to change
md.renderer.rules
but I doesn't work. So does any other way to impletment it.Thanks in advance.
The text was updated successfully, but these errors were encountered: