aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-05 04:47:08 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-05 04:47:08 +0000
commit94841b7602f3465cdb7a452989975d08e43fc694 (patch)
tree311c85653a864c3afc727b96bdba7a91304f822c
parentef7692db619c6464d023bb707573879b003c2e44 (diff)
downloadpandoc-94841b7602f3465cdb7a452989975d08e43fc694.tar.gz
Added "head" to list of HTML block-level tags.
Resolves Issue #108. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1645 788f1e2b-df1e-0410-8736-df70ead52e1b
-rw-r--r--changelog3
-rw-r--r--src/Text/Pandoc/Readers/HTML.hs2
2 files changed, 4 insertions, 1 deletions
diff --git a/changelog b/changelog
index 6795afb80..c3d46f782 100644
--- a/changelog
+++ b/changelog
@@ -49,6 +49,9 @@ pandoc (1.3)
RST, but used in Sphinx for code blocks annotated with syntax
information. Thanks to Luke Plant for the patch.
+ * Added "head" to list of block-level HTML tags. Resolves
+ Issue #108.
+
* Set utf-8 encoding in texinfo headers.
* Properly handle commented-out list items in markdown.
diff --git a/src/Text/Pandoc/Readers/HTML.hs b/src/Text/Pandoc/Readers/HTML.hs
index aef9e1962..a38450713 100644
--- a/src/Text/Pandoc/Readers/HTML.hs
+++ b/src/Text/Pandoc/Readers/HTML.hs
@@ -77,7 +77,7 @@ inlineHtmlTags = ["a", "abbr", "acronym", "b", "basefont", "bdo", "big",
blockHtmlTags :: [[Char]]
blockHtmlTags = ["address", "blockquote", "body", "center", "dir", "div",
"dl", "fieldset", "form", "h1", "h2", "h3", "h4",
- "h5", "h6", "hr", "html", "isindex", "menu", "noframes",
+ "h5", "h6", "head", "hr", "html", "isindex", "menu", "noframes",
"noscript", "ol", "p", "pre", "table", "ul", "dd",
"dt", "frameset", "li", "tbody", "td", "tfoot",
"th", "thead", "tr", "script"] ++ eitherBlockOrInline