View Source Paredown (paredown v0.1.5)
Documentation for Paredown
, a simple subset of Markdown.
Link to this section Summary
Functions
Transform a line into HTML
Link to this section Functions
Transform a line into HTML
examples
Examples
iex> Paredown.line("This is some **bold** and *italicized* text")
{:safe, "This is some <strong>bold</strong> and <em>italicized</em> text"}
iex> Paredown.line("text with [link somewhere][1] interesting", links: %{"1" => "https://example.org/"})
{:safe, ~s(text with <a href="https://example.org/">link somewhere</a> interesting)}