From ad5cbb78d0256a9394d73aa594a838278b7a8c81 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Mon, 31 Dec 2007 00:45:54 +0000 Subject: 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 --- Text/Pandoc/Readers/HTML.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Text/Pandoc/Readers/HTML.hs') diff --git a/Text/Pandoc/Readers/HTML.hs b/Text/Pandoc/Readers/HTML.hs index 9e5a0763a..1d04c74e0 100644 --- a/Text/Pandoc/Readers/HTML.hs +++ b/Text/Pandoc/Readers/HTML.hs @@ -60,7 +60,7 @@ readHtml = readWith parseHtml -- eitherBlockOrInline = ["applet", "button", "del", "iframe", "ins", - "map", "area", "object", "script"] + "map", "area", "object"] inlineHtmlTags = ["a", "abbr", "acronym", "b", "basefont", "bdo", "big", "br", "cite", "code", "dfn", "em", "font", "i", "img", @@ -73,7 +73,7 @@ blockHtmlTags = ["address", "blockquote", "center", "dir", "div", "h5", "h6", "hr", "isindex", "menu", "noframes", "noscript", "ol", "p", "pre", "table", "ul", "dd", "dt", "frameset", "li", "tbody", "td", "tfoot", - "th", "thead", "tr"] ++ eitherBlockOrInline + "th", "thead", "tr", "script"] ++ eitherBlockOrInline -- -- HTML utility functions -- cgit v1.2.3