pandoc/test
John MacFarlane c8b906256d Improved behavior of auto_identifiers when there are explicit ids.
Previously only autogenerated ids were added to the list
of header identifiers in state, so explicit ids weren't taken
into account when generating unique identifiers.  Duplicated
identifiers could result.

This simple fix ensures that explicitly given identifiers are
also taken into account.

Fixes #1745.

Note some limitations, however.  An autogenerated identifier
may still coincide with an explicit identifier that is given
for a header later in the document, or with an identifier on
a div, span, link, or image.  Fixing this would be much more
difficult, because we need to run `registerHeader` before
we have the complete parse tree (so we can't get a complete
list of identifiers from the document by walking the tree).

However, it might be worth issuing warnings for duplicate
header identifiers; I think we can do that.  It is not
common for headers to have the same text, and the issue
can always be worked around by adding explicit identifiers,
if the user is aware of it.
2017-03-12 21:30:04 +01:00
..
command Improved behavior of auto_identifiers when there are explicit ids. 2017-03-12 21:30:04 +01:00
docx Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
epub Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
fb2 Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
media Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
odt Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
Tests Add Muse writer (#3489) 2017-03-10 10:16:27 +01:00
bodybg.gif Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
docbook-reader.docbook Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
docbook-reader.native Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
docbook-xref.docbook Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
docbook-xref.native Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
dokuwiki_external_images.dokuwiki Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
dokuwiki_external_images.native Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
dokuwiki_inline_formatting.dokuwiki Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
dokuwiki_inline_formatting.native Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
dokuwiki_multiblock_table.dokuwiki Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
dokuwiki_multiblock_table.native Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
haddock-reader.haddock Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
haddock-reader.native Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
html-reader.html Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
html-reader.native Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
insert Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
lalune.jpg Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
latex-reader.latex Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
latex-reader.native When parsing raw LaTeX commands, include trailing space. 2017-02-22 21:15:25 +01:00
lhs-test-markdown.native Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
lhs-test.fragment.html+lhs Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
lhs-test.html HTML writer: fallback to basename rather than Untitled. 2017-03-09 09:41:22 +01:00
lhs-test.html+lhs HTML writer: fallback to basename rather than Untitled. 2017-03-09 09:41:22 +01:00
lhs-test.latex LaTeX writer: always add hypertarget when there's a non-empty identifier. 2017-03-01 21:38:28 +01:00
lhs-test.latex+lhs LaTeX writer: always add hypertarget when there's a non-empty identifier. 2017-03-01 21:38:28 +01:00
lhs-test.markdown Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
lhs-test.markdown+lhs Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
lhs-test.native Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
lhs-test.rst Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
lhs-test.rst+lhs Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
markdown-citations.native Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
markdown-citations.txt Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
markdown-reader-more.native Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
markdown-reader-more.txt Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
mediawiki-reader.native Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
mediawiki-reader.wiki Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
movie.jpg Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
opml-reader.native Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
opml-reader.opml Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
pipe-tables.native Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
pipe-tables.txt Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
rst-reader.native RST reader: support scale and align attributes of images. 2017-02-26 23:40:31 +01:00
rst-reader.rst Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
s5-basic.html Regularized CSS in html/epub/html slide templates. 2017-03-04 23:16:42 +01:00
s5-fancy.html Regularized CSS in html/epub/html slide templates. 2017-03-04 23:16:42 +01:00
s5-fragment.html Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
s5-inserts.html Regularized CSS in html/epub/html slide templates. 2017-03-04 23:16:42 +01:00
s5.native Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
tables-rstsubset.native RST reader/writer: properly handle table captions. 2017-02-11 22:37:07 +01:00
tables.asciidoc Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
tables.context Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
tables.docbook4 Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
tables.docbook5 Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
tables.dokuwiki Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
tables.fb2 Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
tables.haddock Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
tables.html4 Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
tables.html5 Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
tables.icml Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
tables.latex Updated table tests. 2017-02-23 22:34:10 +01:00
tables.man Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
tables.markdown Markdown writer: Avoid spurious blanklines at end of document... 2017-03-08 12:47:39 +01:00
tables.mediawiki Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
tables.muse Add Muse writer (#3489) 2017-03-10 10:16:27 +01:00
tables.native Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
tables.opendocument Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
tables.org Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
tables.plain Markdown writer: Avoid spurious blanklines at end of document... 2017-03-08 12:47:39 +01:00
tables.rst RST reader/writer: properly handle table captions. 2017-02-11 22:37:07 +01:00
tables.rtf Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
tables.tei Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
tables.texinfo Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
tables.textile Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
tables.txt Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
tables.zimwiki ZimWiki writer: removed internal formatting from note and table cells, because ZimWiki does not support it (#3446) 2017-02-15 11:28:02 +01:00
test-pandoc.hs Add Muse writer (#3489) 2017-03-10 10:16:27 +01:00
testsuite.native Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
testsuite.txt Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
textile-reader.native Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
textile-reader.textile Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
twiki-reader.native Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
twiki-reader.twiki Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
txt2tags.native Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
txt2tags.t2t Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
writer.asciidoc Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
writer.context Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
writer.docbook4 Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
writer.docbook5 Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
writer.dokuwiki Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
writer.fb2 Added warnings for non-rendered blocks to some writers. 2017-02-17 23:11:31 +01:00
writer.haddock Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
writer.html4 Regularized CSS in html/epub/html slide templates. 2017-03-04 23:16:42 +01:00
writer.html5 Regularized CSS in html/epub/html slide templates. 2017-03-04 23:16:42 +01:00
writer.icml Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
writer.latex LaTeX writer: always add hypertarget when there's a non-empty identifier. 2017-03-01 21:38:28 +01:00
writer.man Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
writer.markdown Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
writer.mediawiki MediaWiki writer: Remove newline before </ref>. 2017-02-21 23:03:10 +01:00
writer.muse Add Muse writer (#3489) 2017-03-10 10:16:27 +01:00
writer.native Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
writer.opendocument Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
writer.opml Markdown writer: Avoid spurious blanklines at end of document... 2017-03-08 12:47:39 +01:00
writer.org Org writer: reduce to two spaces after bullets 2017-02-04 21:15:05 +01:00
writer.plain Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
writer.rst Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
writer.rtf Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
writer.tei Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
writer.texinfo Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
writer.textile Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
writer.zimwiki ZimWiki writer: removed internal formatting from note and table cells, because ZimWiki does not support it (#3446) 2017-02-15 11:28:02 +01:00
writers-lang-and-dir.context Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00
writers-lang-and-dir.latex LaTeX writer: always add hypertarget when there's a non-empty identifier. 2017-03-01 21:38:28 +01:00
writers-lang-and-dir.native Moved tests/ -> test/. 2017-02-04 12:56:30 +01:00