Atx headers: Don't require space after ###. [jgm/peg-markdown]
See https://github.com/jgm/peg-markdown/commit/6515556
This commit is contained in:
parent
9a0423b225
commit
33ef9ad6bc
@ -136,7 +136,7 @@ AtxInline = !Newline !(Sp? '#'* Sp Newline) Inline
|
|||||||
AtxStart = &'#' < ( "######" | "#####" | "####" | "###" | "##" | "#" ) >
|
AtxStart = &'#' < ( "######" | "#####" | "####" | "###" | "##" | "#" ) >
|
||||||
{ $$ = mk_element(H1 + (len(yytext) - 1)) }
|
{ $$ = mk_element(H1 + (len(yytext) - 1)) }
|
||||||
|
|
||||||
AtxHeading = s:AtxStart Sp a:StartList ( AtxInline { a = cons($$, a) } )+ (Sp? '#'* Sp)? Newline
|
AtxHeading = s:AtxStart Sp? a:StartList ( AtxInline { a = cons($$, a) } )+ (Sp? '#'* Sp)? Newline
|
||||||
{ $$ = mk_list(s.key, a)
|
{ $$ = mk_list(s.key, a)
|
||||||
s = nil }
|
s = nil }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user