From a653491ff5d3d19c532bac91b5c7fb5acff69913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Teichgr=C3=A4ber?= Date: Mon, 30 Apr 2012 02:16:21 +0200 Subject: [PATCH] Parse as literal even in inline text. [jgm/peg-markdown] See https://github.com/jgm/peg-markdown/commit/530acc5 --- markdown.go | 2 +- parser.leg | 4 ++-- portid | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/markdown.go b/markdown.go index e92a6c1..8d312e5 100644 --- a/markdown.go +++ b/markdown.go @@ -31,7 +31,7 @@ const ( // rebuild it using // make nuke // make parser - needParserIfaceVersion = parserIfaceVersion_9 + needParserIfaceVersion = parserIfaceVersion_10 ) // Markdown Options: diff --git a/parser.leg b/parser.leg index cbb1797..d16dfcb 100644 --- a/parser.leg +++ b/parser.leg @@ -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 { diff --git a/portid b/portid index b34c321..730a054 100644 --- a/portid +++ b/portid @@ -1 +1 @@ -171 +172