pandoc/test/command
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
..
512.md Fix indirect hyperlink targets. Closes #512. 2017-02-15 17:36:16 +01:00
853.md RST reader: support RST-style citations. 2017-03-03 22:23:01 +01:00
987.md Expand \newenvironment macros. 2017-03-10 09:46:32 +01:00
1166.md RST reader: Handle multiline cells in simple tables. 2017-03-02 16:48:53 +01:00
1279.md Parse YAML metadata in a context that sees footnotes... 2017-03-05 01:36:40 +01:00
1592.md Fixed some loose ends in #1592. 2017-03-04 23:01:29 +01:00
1745.md Improved behavior of auto_identifiers when there are explicit ids. 2017-03-12 21:30:04 +01:00
1773.md When parsing raw LaTeX commands, include trailing space. 2017-02-22 21:15:25 +01:00
2397.md Markdown reader: fixed internal header links. 2017-03-05 16:34:47 +01:00
2434.md OpenDocument writer: fixed dropped elements in some ordered lists. 2017-03-03 22:48:37 +01:00
2606.md MediaWiki reader: ensure that list starts begin at left margin. 2017-02-21 23:41:32 +01:00
2649.md MediaWiki reader: fixed more table issues. 2017-02-21 21:28:24 +01:00
2662.md RST reader: support scale and align attributes of images. 2017-02-26 23:40:31 +01:00
2834.md Markdown writer: Avoid spurious blanklines at end of document... 2017-03-08 12:47:39 +01:00
3309.md Markdown reader: Treat certain environments as inline 2017-03-07 15:00:32 +01:00
3337.md Markdown writer: Avoid spurious blanklines at end of document... 2017-03-08 12:47:39 +01:00
3348.md Changed test case labeled 3384.md to 3348.md. 2017-03-11 23:29:57 +01:00
3422.md Handle language in inline code with --listings. 2017-02-05 22:22:42 +01:00
3432a.md Fixed small bug in RST list parsing. 2017-02-11 20:55:13 +01:00
3475.md RST reader: implemented implicit internal header links. 2017-02-28 10:32:36 +01:00
3487.md Markdown writer: Avoid spurious blanklines at end of document... 2017-03-08 12:47:39 +01:00
3494.md LaTeX reader: allow newpage, clearpage, pagebreak in inline contexts 2017-03-06 21:49:06 +01:00
3497.md Added test case for #3497. 2017-03-08 12:23:01 +01:00
3499.md Org reader: disallow tables on list marker lines 2017-03-08 15:45:00 +01:00
hspace.md LaTeX reader: allow hspace and vspace to count as raw block or inline. 2017-02-25 12:43:00 +01:00
latex-tabular-column-specs.md LaTeX reader: properly handle column prefixes/suffixes. 2017-02-13 22:39:59 +01:00
md-abbrevs.md Added a markdown abbrevation test case. 2017-03-05 10:44:25 +01:00
multiple-metadata-blocks.md Markdown reader: Fixed regression on left-biased union for metadata. 2017-03-05 09:28:44 +01:00
parse-raw.md Removed --parse-raw and readerParseRaw. 2017-02-06 23:33:23 +01:00
smart.md More smart escaping tests. 2017-02-04 22:09:19 +01:00
vars-and-metadata.md Added test case for variables/metadata in Markdown writer. 2017-02-25 23:54:30 +01:00