[英]Pandoc: Conditional breaks when converting docx to markdown
I have a docx document which contains conditional breaks ( Ctrl + -
). 我有一个docx文档,其中包含条件换行符(
Ctrl + -
)。 I'm converting them to markdown and later (with jekyll) to HTML. 我将它们转换为markdown,稍后(使用jekyll)转换为HTML。 Unfortunately, the conditional breaks are lost.
不幸的是,条件中断丢失了。 A workaround is to edit the generated markdown document and insert
­
解决方法是编辑生成的降价文档并插入
­
, but this is not a solution since I need to generate the markdown from the docx regulary. ,但这不是解决方案,因为我需要定期从docx生成markdown。
How can I tell pandoc to keep the conditional breaks? 我如何告诉Pandoc保留条件性休息时间?
Edit: It does not only occur when converting to markdown, the conditional breaks are also lost when converting directly to HTML. 编辑:不仅在转换为降价时发生,直接转换为HTML时,条件中断也会丢失。
Unfortunately, Word doesn't use the unicode character 'SOFT HYPHEN' (U+00AD) but instead creates it's own XML element <w:softHyphen/>
internally in it's docx format. 不幸的是,Word没有使用Unicode字符'SOFT HYPHEN'(U + 00AD),而是在内部以docx格式创建了自己的XML元素
<w:softHyphen/>
。
A pandoc issue has been filed to adjust the docx reader. 已提交pandoc问题以调整docx阅读器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.