mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-23 16:05:54 +00:00
Commented out some unneeded code in HTML reader.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1325 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
@@ -64,12 +64,14 @@ eitherBlockOrInline :: [[Char]]
|
||||
eitherBlockOrInline = ["applet", "button", "del", "iframe", "ins",
|
||||
"map", "area", "object"]
|
||||
|
||||
{-
|
||||
inlineHtmlTags :: [[Char]]
|
||||
inlineHtmlTags = ["a", "abbr", "acronym", "b", "basefont", "bdo", "big",
|
||||
"br", "cite", "code", "dfn", "em", "font", "i", "img",
|
||||
"input", "kbd", "label", "q", "s", "samp", "select",
|
||||
"small", "span", "strike", "strong", "sub", "sup",
|
||||
"textarea", "tt", "u", "var"] ++ eitherBlockOrInline
|
||||
-}
|
||||
|
||||
blockHtmlTags :: [[Char]]
|
||||
blockHtmlTags = ["address", "blockquote", "body", "center", "dir", "div",
|
||||
@@ -271,9 +273,11 @@ htmlEndTag tag = try $ do
|
||||
char '>'
|
||||
return $ "</" ++ tag ++ ">"
|
||||
|
||||
{-
|
||||
-- | Returns @True@ if the tag is (or can be) an inline tag.
|
||||
isInline :: String -> Bool
|
||||
isInline tag = (extractTagType tag) `elem` inlineHtmlTags
|
||||
-}
|
||||
|
||||
-- | Returns @True@ if the tag is (or can be) a block tag.
|
||||
isBlock :: String -> Bool
|
||||
|
||||
Reference in New Issue
Block a user