Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Annotate subsequences of a Text
string with arbitrary metadata.
Documentation
Markup. This contains text along with markup.
toMarkup :: Text -> a -> Markup a Source #
Convert a Text
value into Markup
with the accompanying metadata
value assigned to the entire Text
sequence.
fromMarkup :: Markup a -> [(Text, a)] Source #
Recover the original text along with metadata assigned with
markRegion
.