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
|
// rebuild it using
|
||||||
// make nuke
|
// make nuke
|
||||||
// make parser
|
// make parser
|
||||||
needParserIfaceVersion = parserIfaceVersion_9
|
needParserIfaceVersion = parserIfaceVersion_10
|
||||||
)
|
)
|
||||||
|
|
||||||
// Markdown Options:
|
// Markdown Options:
|
||||||
|
@ -28,7 +28,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
parserIfaceVersion_9 = iota
|
parserIfaceVersion_10 = iota
|
||||||
)
|
)
|
||||||
|
|
||||||
// Semantic value of a parsing action.
|
// Semantic value of a parsing action.
|
||||||
@ -684,7 +684,7 @@ Code = ( Ticks1 Sp < ( ( !'`' Nonspacechar )+ | !Ticks1 '`'+ | !( Sp Ticks1 ) (
|
|||||||
)
|
)
|
||||||
{ $$ = p.mkString(yytext); $$.key = CODE }
|
{ $$ = p.mkString(yytext); $$.key = CODE }
|
||||||
|
|
||||||
RawHtml = < (HtmlComment | HtmlTag) >
|
RawHtml = < (HtmlComment | HtmlBlockScript | HtmlTag) >
|
||||||
{ if p.extension.FilterHTML {
|
{ if p.extension.FilterHTML {
|
||||||
$$ = p.mkList(LIST, nil)
|
$$ = p.mkList(LIST, nil)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user