There appears to be something amiss with the most recent installed version of Pandoc (pandoc 1.13.2.1) on my machines. With the previously installed version, conversion from markdown to plain text would generate 'Setext-style headers---'=' for H1 and '-' for H2---
in plain text output. In addition, I have noticed two more iffy issues:
- Pandoc now automatically generates uppercase letters for title
- Pandoc now precedes title with what seems to be two new lines (\n)
I have spent the last few minutes playing around with different pandoc options with little luck.
How do I convert Illustration #1 to Illustration #3
Environment pandoc (pandoc 1.13.2.1) Kubuntu 15.10
Illustration #1: Input markdown file
# Title
## Section
* This is the section.
### Subsection
* This happens to be the subsection
Illustration #2: Output plain text after run pandoc -f markdown -t plain pandoc_markdown_issue.md
TITLE
Section
- This is the section.
Subsection
- This happens to be the subsection
Illustration #3: Desired Output
Title
=====
Section
-------
- This is the section.
Subsection
----------
- This happens to be the subsection