paredown v0.1.4 Paredown View Source

Documentation for Paredown, a simple subset of Markdown.

Link to this section Summary

Functions

Transform a line into HTML

Link to this section Functions

Link to this function

line(input, options \\ [])

View Source

Transform a line into HTML

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)}