Improved SkipBlock to allow references after headers. [jgm/peg-markdown]
See https://github.com/jgm/peg-markdown/commit/9e05fec
This commit is contained in:
parent
5f0135f259
commit
ad8afc4ab1
@ -31,7 +31,7 @@ const (
|
|||||||
// rebuild it using
|
// rebuild it using
|
||||||
// make nuke
|
// make nuke
|
||||||
// make parser
|
// make parser
|
||||||
needParserIfaceVersion = parserIfaceVersion_12
|
needParserIfaceVersion = parserIfaceVersion_13
|
||||||
)
|
)
|
||||||
|
|
||||||
// Markdown Options:
|
// Markdown Options:
|
||||||
|
@ -28,7 +28,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
parserIfaceVersion_12 = iota
|
parserIfaceVersion_13 = iota
|
||||||
)
|
)
|
||||||
|
|
||||||
// Semantic value of a parsing action.
|
// Semantic value of a parsing action.
|
||||||
@ -729,8 +729,10 @@ Line = RawLine
|
|||||||
{ $$ = p.mkString(yytext) }
|
{ $$ = p.mkString(yytext) }
|
||||||
RawLine = ( < (!'\r' !'\n' .)* Newline > | < .+ > Eof )
|
RawLine = ( < (!'\r' !'\n' .)* Newline > | < .+ > Eof )
|
||||||
|
|
||||||
SkipBlock = ( !BlankLine RawLine )+ BlankLine*
|
SkipBlock = HtmlBlock
|
||||||
|
| ( !'#' !SetextBottom1 !SetextBottom2 !BlankLine RawLine )+ BlankLine*
|
||||||
| BlankLine+
|
| BlankLine+
|
||||||
|
| ( &('#' | SetextBottom1 | SetextBottom2) RawLine )
|
||||||
|
|
||||||
# Syntax extensions
|
# Syntax extensions
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user