Djot

A fast Djot parser and formatter for Elixir.

Djot parsing and transformations powered by the jotdown rust crate.

Goals

Usage

Simply call to_html on a string that contains Djot data, and you'll get back a html fragment.

Djot.to_html("hello *world*!")
# => {:ok, "<p>hello <strong>world</strong>!</p>\n"}

Installation

Add :djot as a dependency:

def deps do
[
{:djot, "~> 0.1.0"}
]