Fixed Endline to allow 1 and 2-character setext header lines. [jgm/peg-markdown]
See https://github.com/jgm/peg-markdown/commit/482a0ba
This commit is contained in:
parent
fe64993b93
commit
6bfe7a1a46
@ -510,7 +510,7 @@ Entity = ( HexEntity | DecEntity | CharEntity )
|
|||||||
Endline = LineBreak | TerminalEndline | NormalEndline
|
Endline = LineBreak | TerminalEndline | NormalEndline
|
||||||
|
|
||||||
NormalEndline = Sp Newline !BlankLine !'>' !AtxStart
|
NormalEndline = Sp Newline !BlankLine !'>' !AtxStart
|
||||||
!(Line ("===" '='* | "---" '-'*) Newline)
|
!(Line ('='+ | '-'+) Newline)
|
||||||
{ $$ = p.mkString("\n")
|
{ $$ = p.mkString("\n")
|
||||||
$$.key = SPACE }
|
$$.key = SPACE }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user