jgm/pandoc — Issue #329: invalid EPUB generated with --toc option
Author: rwst
Created: 2011-10-27 16:41:17+00:00
State: open

the markdown:

% ABC
% T. Bother
% 19020101

## Intro

text

together with the command line

pandoc -f markdown t.md --toc --epub-cover-image=title.png -o t.epub

creates an invalid EPUB file, according to epub-validator 1.2 who complains:

ERROR: /Users/rwst/Desktop/pg-curie/t.epub/ch1.xhtml(11): 'TOC': fragment identifier is not defined in 'ch1.xhtml'

The contents of ch1.xhtml are:

ABC

ABC

Intro

Intro

text