Skip to content

Commit

Permalink
Changed order of AtxHeading & SetextHeading in Heading.
Browse files Browse the repository at this point in the history
This way the following test case is parsed as by Markdown.pl:

==============

<h1>## header text</h1>

Thanks to Ali Rantakari.
  • Loading branch information
jgm committed Mar 10, 2011
1 parent d57e706 commit a3b97b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion markdown_parser.leg
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ SetextHeading2 = &(RawLine SetextBottom2)
a:StartList ( !Endline Inline { a = cons($$, a); } )+ Sp? Newline
SetextBottom2 { $$ = mk_list(H2, a); }

Heading = AtxHeading | SetextHeading
Heading = SetextHeading | AtxHeading

BlockQuote = a:BlockQuoteRaw
{ $$ = mk_element(BLOCKQUOTE);
Expand Down

0 comments on commit a3b97b3

Please sign in to comment.