Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
fiddlosopher
on Jan 19, 2023
|
parent
|
context
|
favorite
| on:
Pandoc 3.0
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.
Veen
on Jan 19, 2023
[–]
Oh really? I've tried --shift-heading in the past and it worked to move headings up a level, but not to the title. I'll have to read the docs more carefully and give it another go. Thank you.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: