Any way to set the highest header level in output? #106
-
|
I'm thinking of using this for my static site generator, where articles are written in Markdown and converted to static HTML. Because websites should really only have one Example: # Hello, world!
## My section
Lorem ipsum dolor sit amet.would turn into <h2>Hello, world!</h2>
<h3>My section</h3>
<p>Lorem ipsum dolor sit amet.</p>Is this at all possible? Or is there already an easy way to parse and replace HTML tags with another Rust library? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Welcome @colleen05! 👋 Something similar would be possible in |
Beta Was this translation helpful? Give feedback.
Welcome @colleen05! 👋
markdown-rshas sibling projects in the JavaScript ecosystemremarkandrehypehttps://unifiedjs.com/learn/Those can shift heading levels using https://github.com/rehypejs/rehype-shift-heading
Something similar would be possible in
markdown-rsafter plugins (#32) are supported. Insights and code moving plugin support forward are welcome!