Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with headers numbering in HTML output #789

Closed
ghost opened this issue Mar 16, 2013 · 0 comments
Closed

Problem with headers numbering in HTML output #789

ghost opened this issue Mar 16, 2013 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 16, 2013

$ pandoc --version
pandoc 1.11
$ cat test.md
% Title
% Author
% Date

Header
======

$ pandoc --from markdown --to html5 --standalone --toc --self-contained --number-sections --output test.html test.md

The HTML result has a toc and numbered headers, as expected, but there's a numbering problem:

Title
Author
Date
    1 Header
2 Header

I.e. the numbering starts at 1 on the ToC but starts at 2 in the body.

@jgm jgm closed this as completed in f8fec87 Mar 16, 2013
jamiefolson pushed a commit to jamiefolson/pandoc that referenced this issue Mar 21, 2013
Also made `--number-offset` affect TOC numbering as well
as section numbering, as it should have all along.

Closes jgm#789.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant