jgm / pandoc

Universal markup converter
https://pandoc.org
Other
34.81k stars 3.39k forks source link

Markdown to Docx problem: Lost some line break #10336

Closed lsy-g closed 1 month ago

lsy-g commented 1 month ago

Hi,

Running [pandoc 3.5] and (https://pandoc.org/try/),and find same problem,lost some link break

When I try to convert a Markdown document to a DOCX document, I find that in some scenarios, line breaks are lost. This could be a bug in Pandoc. Could you please confirm this, or is it possible that there is an issue with the parameters I am using? here is my file 2024-10-25_17_19_59_1ff7e3a9ad96536681b89f810ef125a5.md

lsy-g commented 1 month ago

here is photo ori target

bpj commented 1 month ago

You mean the code is enclosed in a code block and you are still losing newlines? If it is an indented code block try to make it a fenced code block (which also will allow you to get the code highlighted if you want to).

jgm commented 1 month ago

This appears to be code. Put it in a code block: add


to the top and bottom.