Parse <script>...</script> as literal even in inline text. [jgm/peg-markdown]
See https://github.com/jgm/peg-markdown/commit/530acc5
This commit is contained in:
parent
d23584ac81
commit
a653491ff5
@ -31,7 +31,7 @@ const (
|
||||
// rebuild it using
|
||||
// make nuke
|
||||
// make parser
|
||||
needParserIfaceVersion = parserIfaceVersion_9
|
||||
needParserIfaceVersion = parserIfaceVersion_10
|
||||
)
|
||||
|
||||
// Markdown Options:
|
||||
|
@ -28,7 +28,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
parserIfaceVersion_9 = iota
|
||||
parserIfaceVersion_10 = iota
|
||||
)
|
||||
|
||||
// Semantic value of a parsing action.
|
||||
@ -684,7 +684,7 @@ Code = ( Ticks1 Sp < ( ( !'`' Nonspacechar )+ | !Ticks1 '`'+ | !( Sp Ticks1 ) (
|
||||
)
|
||||
{ $$ = p.mkString(yytext); $$.key = CODE }
|
||||
|
||||
RawHtml = < (HtmlComment | HtmlTag) >
|
||||
RawHtml = < (HtmlComment | HtmlBlockScript | HtmlTag) >
|
||||
{ if p.extension.FilterHTML {
|
||||
$$ = p.mkList(LIST, nil)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user