fletcher/peg-multimarkdown — Issue #92: Broken auto-referencing for headlines
Author: x3ro
Created: 2011-11-27 12:37:48+00:00
State: open

If there is any kind of (HTML-style) comment on the line before a headline, then auto-referencing will not work for that headline, for example:

## This works

# Some headline
Some very important text.

# Another headline
Some reference to [Some headline][]

And will result in:

\part{Some headline}
\label{someheadline}

Some very important text.

\part{Another headline}
\label{anotherheadline}

Some reference to Some headline (\autoref{some headline})

## This does NOT work

# Some headline
Some very important text.

# Another headline
Some reference to [Some headline][]

And will therefore result in:

\newpage

\part{Some headline}
\label{someheadline}

Some very important text.

\part{Another headline}
\label{anotherheadline}

Some reference to [Some headline][]

Note the last line, where the reference *should* be. This is always reproducible and will happen even with an empty comment, that is ``.