@hackage gemmula1.2.0

a tiny gemtext parser

gemmula - a tiny gemtext parser for Haskell

The documentation is available at Hackage.

Example

>>> let document = Text.Gemini.decode <$> Data.Text.IO.readFile "examples/paradox.gmi"
>>> document

[ GemHeading 1 "gemmula"
, GemList [ "hello,"
          , "world!"
          ]
, GemText ""
, GemQuote "made with"
, GemPre [ "<3"
         ]
         (Just "ascii art of a heart")
, GemLink "https://www.haskell.org" (Just "and Haskell!")
]

>>> Text.Gemini.encode <$> document >>= Data.Text.IO.writeFile "examples/paradox.gmi"

See also