Improved SkipBlock to allow references after headers. [jgm/peg-markdown]

See https://github.com/jgm/peg-markdown/commit/9e05fec
This commit is contained in:
Michael Teichgräber 2012-04-30 10:12:01 +02:00
parent 5f0135f259
commit ad8afc4ab1
3 changed files with 6 additions and 4 deletions

View File

@ -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:

View File

@ -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

2
portid
View File

@ -1 +1 @@
174 176