Re:Pandoc 3.0
by Veen on Thursday January 19, 2023 @11:35AM
(#34442202)
I do wish there was an easy way to create Word document titles from H1s in Markdown. It makes sense that they should be converted to top-level headings, but it adds an annoying bit of friction to my workflow.
[ Parent
| on HN ]
Re:Pandoc 3.0
by fiddlosopher on Thursday January 19, 2023 @12:00PM
(#34442608)
Oh, but there is!
pandoc --shift-heading-level-by=-1 input.md -o output.docx
This will promote level-2 headings to level-1, and promote a level-1 heading at the top of the document to the document's title.