使用带有汉字的pandoc时如何禁用space?

How to disable space when using pandoc with Chinese characters?

当我们使用vim时,我们总是设置vim来限制每行的字符数。像这样

set cc=80
set fo=+tMn

因此,如果我将 markdown 文件转换为 docx 文件,pandoc 会自动在每一行的尾部放置一个 space,这对英文文档来说很好。

但是对于汉字,它是在一个句子中连线一个space。那么有什么方法可以避免这个问题吗?

这是我从 MANUAL.

中找到的解决方案

Extension: east_asian_line_breaks

Causes newlines within a paragraph to be ignored, rather than being treated as spaces or as hard line breaks, when they occur between two East Asian wide characters. This is a better choice than ignore_line_breaks for texts that include a mix of East Asian wide characters and other characters.