Fragmentor (fragmentor v0.1.2)

Fragmentor is library made for converting markdown into html fragmented by separated types.

Currently we support only three types of fragments

  • Code - Consists of Syntax Highlighting Codes
  • HTML - Any kind of HTML code with tags and text
  • Video - Consists of video html tags and its atributes

Link to this section Summary

Functions

Converts Markdown text directly to a fragmented HTML

Converts Markdown text directly to a fragmented HTML

Convert Markdown text directly to raw HTML

Convert Markdown text directly to raw HTML

Link to this section Functions

Link to this function

to_fragments!(markdown, options \\ [])

Converts Markdown text directly to a fragmented HTML

Raises Error if the Content object does not exist.

Link to this function

to_fragments(markdown, options \\ [])

Converts Markdown text directly to a fragmented HTML

Link to this function

to_html!(markdown, options \\ [])

Convert Markdown text directly to raw HTML

Raises Error if the Content object does not exist.

example

Example

iex> to_html!("*markdown content*", compact_output: true)
"<p><em>markdown content</em></p>"
Link to this function

to_html(markdown, options \\ [])

Convert Markdown text directly to raw HTML

example

Example

iex> to_html("*markdown content*", compact_output: true)
{:ok, "<p><em>markdown content</em></p>"}