jot

A parser for Djot, a markdown-like language.

Package Version Hex Docs

gleam add jot
import jot

const document = "
# Hello, Joe!

This is a [Djot][djot] document.

[djot]: https://www.djot.net/
"

pub fn main() {
 // Turn the document into HTML
 let html = djot.to_html(document)

 // Alternatively, parse the document to an AST
 let ast = djot.parse(document)
}

Further documentation can be found at https://hexdocs.pm/jot.

Status

This project is a work in progress. So far it supports:

Search Document