@@ -151,8 +151,7 @@ htmlAttribute = htmlRegularAttribute <|> htmlMinimizedAttribute
151htmlMinimizedAttribute = try $ do
151htmlMinimizedAttribute = try $ do
152 many1 space
152 many1 space
153 name <- many1 (choice [letter, oneOf ".-_:"])
153 name <- many1 (choice [letter, oneOf ".-_:"])
155− notFollowedBy (char '=')
154+ notFollowedBy (spaces >> char '=')
156 let content = name
155 let content = name
157 return (name, content, (" " ++ name))
156 return (name, content, (" " ++ name))
@@ -319,19 +318,13 @@ hrule = try $ do
319-- code blocks
318-- code blocks
322−codeBlock = preCodeBlock <|> bareCodeBlock <?> "code block"
321+codeBlock = try $ do
324−preCodeBlock = try $ do
325 htmlTag "pre"
322 htmlTag "pre"
327− result <- bareCodeBlock
332−bareCodeBlock = try $ do
333 htmlTag "code"
324 htmlTag "code"
334 result <- manyTill anyChar (htmlEndTag "code")
325 result <- manyTill anyChar (htmlEndTag "code")
335 return $ CodeBlock $ stripTrailingNewlines $
328 return $ CodeBlock $ stripTrailingNewlines $
336 decodeCharacterReferences result
329 decodeCharacterReferences result