Skip to content
/ jot Public

A parser for Djot, a markdown-like language.

Notifications You must be signed in to change notification settings

lpil/jot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 = jot.to_html(document)

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

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

Status

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

  • Headings
  • Paragraphs
  • Links (inline and reference)
  • Images
  • Code blocks
  • Inline code
  • Emphasis and strong
  • Block attributes

About

A parser for Djot, a markdown-like language.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages