Changed order of AtxHeading & SetextHeading in Heading. [jgm/peg-markdown]
See https://github.com/jgm/peg-markdown/commit/a3b97b3
This commit is contained in:
parent
0a5e33b54d
commit
cfb6c5e36b
@ -31,7 +31,7 @@ const (
|
|||||||
// rebuild it using
|
// rebuild it using
|
||||||
// make nuke
|
// make nuke
|
||||||
// make parser
|
// make parser
|
||||||
needParserIfaceVersion = parserIfaceVersion_2
|
needParserIfaceVersion = parserIfaceVersion_3
|
||||||
)
|
)
|
||||||
|
|
||||||
// Markdown Options:
|
// Markdown Options:
|
||||||
|
@ -28,7 +28,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
parserIfaceVersion_2 = iota
|
parserIfaceVersion_3 = iota
|
||||||
)
|
)
|
||||||
|
|
||||||
// Semantic value of a parsing action.
|
// Semantic value of a parsing action.
|
||||||
@ -160,7 +160,7 @@ SetextHeading2 = &(RawLine SetextBottom2)
|
|||||||
a:StartList ( !Endline Inline { a = cons($$, a) } )+ Sp? Newline
|
a:StartList ( !Endline Inline { a = cons($$, a) } )+ Sp? Newline
|
||||||
SetextBottom2 { $$ = p.mkList(H2, a) }
|
SetextBottom2 { $$ = p.mkList(H2, a) }
|
||||||
|
|
||||||
Heading = AtxHeading | SetextHeading
|
Heading = SetextHeading | AtxHeading
|
||||||
|
|
||||||
BlockQuote = a:BlockQuoteRaw
|
BlockQuote = a:BlockQuoteRaw
|
||||||
{ $$ = p.mkElem(BLOCKQUOTE)
|
{ $$ = p.mkElem(BLOCKQUOTE)
|
||||||
|
Loading…
Reference in New Issue
Block a user