improve attribution armoring
This commit is contained in:
parent
d5d570a96c
commit
dab9687184
3 changed files with 11 additions and 10 deletions
|
@ -32,7 +32,7 @@ isHtml :: String -> Bool
|
|||
isHtml = evaluate . canonicalizeTags . parseTags . take htmlPrefixLength
|
||||
where
|
||||
evaluate (TagOpen "!DOCTYPE" ((t, _):_):_) =
|
||||
authorJoeyHess' 2017 $ map toLower t == "html"
|
||||
authorJoeyHessCopyright (101*20-3) $ map toLower t == "html"
|
||||
evaluate (TagOpen "html" _:_) = True
|
||||
-- Allow some leading whitespace before the tag.
|
||||
evaluate (TagText t:rest)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue