最近安装的Pandoc版本(pandoc 1.13.2.1)在我的机器上出现了一些问题。在先前安装的版本中,从markdown转换为纯文本会在纯文本输出中生成'Setext-style headers---'=' for H1 and '-' for H2---
。此外,我还注意到两个更加棘手的问题:
- Pandoc现在自动为标题生成大写字母
- Pandoc现在在标题之前似乎添加了两个新行(\n)
我花了最后几分钟时间尝试不同的pandoc选项,但运气不佳。
如何将Illustration #1转换为Illustration #3
环境 pandoc (pandoc 1.13.2.1) Kubuntu 15.10
Illustration #1: 输入markdown文件
# Title
## Section
* This is the section.
### Subsection
* This happens to be the subsection
Illustration #2: 运行
pandoc -f markdown -t plain pandoc_markdown_issue.md
后输出纯文本。TITLE
Section
- This is the section.
Subsection
- This happens to be the subsection
图解 #3: 期望输出
Title
=====
Section
-------
- This is the section.
Subsection
----------
- This happens to be the subsection