Fixed issue with parsing tag names
Getty Ritter
10 years ago
| 5 | 5 | import Control.Monad (void) |
| 6 | 6 | import Data.TeLML |
| 7 | 7 | import Text.Blaze.Html |
| 8 | import Text.Blaze.Internal (MarkupM) | |
| 9 | 8 | import Text.Blaze.Html5 hiding (map, head, html) |
| 10 | 9 | import Text.Blaze.Html5.Attributes hiding (name) |
| 11 | 10 | |
| 47 | 46 | , \case (f,[rs]) -> fmap (strong . sequence_) (mapM f rs) |
| 48 | 47 | _ -> Left "wrong arity for strong/1" |
| 49 | 48 | ) |
| 49 | , ("code" | |
| 50 | , \case (f,[rs]) -> fmap (code . sequence_) (mapM f rs) | |
| 51 | _ -> Left "wrong arity for strong/1" | |
| 52 | ) | |
| 50 | 53 | , ("link" |
| 51 | 54 | , \case (f,[[Text l],r]) -> let go h = a ! href (stringValue l) $ h |
| 52 | 55 | in fmap (go . sequence_) (mapM f r) |