Require only one character for setext header lines. [jgm/peg-markdown]
See https://github.com/jgm/peg-markdown/commit/ce835e5
This commit is contained in:
parent
54cb06d41a
commit
326da7a836
@ -148,9 +148,9 @@ AtxHeading = s:AtxStart Sp? a:StartList ( AtxInline { a = cons($$, a) } )+ (Sp?
|
|||||||
|
|
||||||
SetextHeading = SetextHeading1 | SetextHeading2
|
SetextHeading = SetextHeading1 | SetextHeading2
|
||||||
|
|
||||||
SetextBottom1 = "===" '='* Newline
|
SetextBottom1 = '='+ Newline
|
||||||
|
|
||||||
SetextBottom2 = "---" '-'* Newline
|
SetextBottom2 = '-'+ Newline
|
||||||
|
|
||||||
SetextHeading1 = &(RawLine SetextBottom1)
|
SetextHeading1 = &(RawLine SetextBottom1)
|
||||||
a:StartList ( !Endline Inline { a = cons($$, a) } )+ Sp? Newline
|
a:StartList ( !Endline Inline { a = cons($$, a) } )+ Sp? Newline
|
||||||
|
Loading…
Reference in New Issue
Block a user