Fixed exponential problem with Emph/Strong. [jgm/peg-markdown]
See https://github.com/jgm/peg-markdown/commit/c258a9a
This commit is contained in:
parent
ba2d82f616
commit
5bebe88174
@ -31,7 +31,7 @@ const (
|
||||
// rebuild it using
|
||||
// make nuke
|
||||
// make parser
|
||||
needParserIfaceVersion = parserIfaceVersion_14
|
||||
needParserIfaceVersion = parserIfaceVersion_15
|
||||
)
|
||||
|
||||
// Markdown Options:
|
||||
|
@ -28,7 +28,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
parserIfaceVersion_14 = iota
|
||||
parserIfaceVersion_15 = iota
|
||||
)
|
||||
|
||||
// Semantic value of a parsing action.
|
||||
@ -532,7 +532,7 @@ UlLine = < "____" '_'* > | < Spacechar '_'+ &Spacechar >
|
||||
Emph = EmphStar | EmphUl
|
||||
|
||||
OneStarOpen = !StarLine '*' !Spacechar !Newline
|
||||
OneStarClose = !Spacechar !Newline a:Inline !StrongStar '*' { $$ = a }
|
||||
OneStarClose = !Spacechar !Newline a:Inline '*' { $$ = a }
|
||||
|
||||
EmphStar = OneStarOpen
|
||||
a:StartList
|
||||
|
Loading…
Reference in New Issue
Block a user