View Source Gemtext.Renderer (Gemtext v0.2.0)
Gemtext renderer
Link to this section Summary
Functions
Renders a list of gemtext blocks to string
Link to this section Types
@type gemtext_blocks() :: Gemtext.Parser.gemtext_blocks()
Link to this section Functions
Renders a list of gemtext blocks to string
examples
Examples
iex> Gemtext.Renderer.render([
...> {:h1, "Heading 1"},
...> {:text, ""},
...> {:text, "This is a robot emoji 🤖"},
...> {:text, ""},
...> {:link, %{to: "/link"}, nil},
...> ])
"# Heading 1\n\nThis is a robot emoji 🤖\n\n=> /link"