khajavi / pandoc

Automatically exported from code.google.com/p/pandoc
GNU General Public License v2.0
0 stars 0 forks source link

Table of contents not generated for HTML #208

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a Markdown file with headings
2. Use pandoc --toc to create HTML file

What is the expected output? What do you see instead?
I expect a table of contents at the top; I see none.  Headings try to link
to it, but it doesn't exist.

What version of the product are you using? On what operating system?
1.4.1

Original issue reported on code.google.com by iain.dal...@gmail.com on 18 Jan 2010 at 5:19

GoogleCodeExporter commented 9 years ago
You need to specify -s to produce a standalone document with table of contents.
(Same thing in latex and the other formats.)

If you want a table of contents without the other default header stuff, just use
--template with a custom header containing:

$toc$
$body$

Original comment by fiddloso...@gmail.com on 18 Jan 2010 at 7:07

GoogleCodeExporter commented 9 years ago
Ah, I see; thanks.

Original comment by iain.dal...@gmail.com on 18 Jan 2010 at 7:17