View Source Conpipe.Converter.SolidMdex (conpipe v0.1.0)
This converter consumes Markdown text with embedded Liquid tags.
It uses the Conpipe.Convert.Solid
to transform the Liquid tags,
and Conpipe.Convert.Mdex
to transform Markdown to HTML.
Summary
Functions
The convert/1
function simply takes a string and returns a converted
stringk
@spec convert( {input :: String.t(), assigns :: map()}, options :: keyword() ) :: {output :: String.t(), assigns :: map()}
Convert Liquid tags then convert markdown to HTML
@spec convert( filepath :: String.t(), front_matter :: map(), body :: String.t(), opts :: map() ) :: output :: String.t()
The convert/4
function can be called directly from Tableau.
# config/config.exs
config :tableau, :config,
url: "http://localhost:4999",
converters: [
md: Conpipe.Converter.SolidMdex
]
The convert/4
function returns just the converted text. It should not
be used in a pipeline.