Word to Markdown via pandoc: prevent line breaks in paragraphs
Asked Answered
H

1

13

I'm using pandoc to convert Microsoft Word to Markdown. By default, it inserts line breaks into paragraphs at the point where they wrap in the original Word document. I would rather a paragraph be converted to a single line (as my Markdown files are further processed into Madcap Flare topics). Is there an option for this?

Harp answered 18/7, 2020 at 10:8 Comment(0)
D
16

By default, pandoc inserts a newline in markdown output every 72 characters. You can change this with an option:

pandoc --wrap=none
Dagnydago answered 20/7, 2020 at 7:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.