Skip to content

Commit

Permalink
Improved SkipBlock to allow references after headers.
Browse files Browse the repository at this point in the history
Previously, references and notes right after setext or atx
headers or html blocks were skipped over.
  • Loading branch information
jgm committed Dec 14, 2011
1 parent f967b91 commit 9e05fec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion markdown_parser.leg
Original file line number Diff line number Diff line change
Expand Up @@ -647,8 +647,10 @@ Line = RawLine
{ $$ = mk_str(yytext); }
RawLine = ( < (!'\r' !'\n' .)* Newline > | < .+ > Eof )

SkipBlock = ( !BlankLine RawLine )+ BlankLine*
SkipBlock = HtmlBlock
| ( !'#' !SetextBottom1 !SetextBottom2 !BlankLine RawLine )+ BlankLine*
| BlankLine+
| ( &('#' | SetextBottom1 | SetextBottom2) RawLine )

# Syntax extensions

Expand Down

0 comments on commit 9e05fec

Please sign in to comment.