git.iko.soy/typeable/pandoc
on master help sign in
HTML reader: Finished fixing Issue #40.

Contents of script tags were still being treated as markdown when the script tags were parsed as inline. Fixed by moving "script" from the list of tags that can be either block or inline to the list of block tags. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1163 788f1e2b-df1e-0410-8736-df70ead52e1b

commitad5cbb78d0256a9394d73aa594a838278b7a8c81 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateMon 31 Dec 2007, 00:45 (19 years ago) parentd989a78
1 file changed+2−2
Text/Pandoc/Readers/HTML.hs+2−2
Text/Pandoc/Readers/HTML.hs+2−2
@@ -60,7 +60,7 @@ readHtml = readWith parseHtml
6060--
6161
6262eitherBlockOrInline = ["applet", "button", "del", "iframe", "ins",
63− "map", "area", "object", "script"]
63+ "map", "area", "object"]
6464
6565inlineHtmlTags = ["a", "abbr", "acronym", "b", "basefont", "bdo", "big",
6666 "br", "cite", "code", "dfn", "em", "font", "i", "img",
@@ -73,7 +73,7 @@ blockHtmlTags = ["address", "blockquote", "center", "dir", "div",
7373 "h5", "h6", "hr", "isindex", "menu", "noframes",
7474 "noscript", "ol", "p", "pre", "table", "ul", "dd",
7575 "dt", "frameset", "li", "tbody", "td", "tfoot",
76− "th", "thead", "tr"] ++ eitherBlockOrInline
76+ "th", "thead", "tr", "script"] ++ eitherBlockOrInline
7777
7878--
7979-- HTML utility functions