I'm running into the same issue -- would like to use pandoc to insert numbers to section headings, including in txt output formats. Is that possible?
Ramon
On Monday, May 13, 2013 at 9:08:13 AM UTC-7, chandra wrote:
Folks,
I am trying to get HTML5, PDF, and plain text output from the same .md
source file with numbered sections in all three outputs.
The bash script I am using is:
---
pandoc -f markdown -t html5 --standalone --number-sections $1.md -o $1.html
pandoc -f markdown -t plain --standalone --number-sections $1.md -o $1.txt
pandoc -f markdown -t latex --standalone --number-sections $1.md -o $1.pdf
---
The HTML and PDF outputs are fine and feature numbered sections, but
there are no numbered sections in the plain text. I think this is by
design but would like to know if there is a workaround for getting
numbered sections in plain text as well.
TIA.
Chandra