Skip to content

treeman/tree-sitter-djot

Repository files navigation

tree-sitter-djot

This is an experimental Tree-sitter grammar for Djot.

Features

Aims to be fully feature complete with the Djot specification:

  • Inline syntax
    • Links
    • Image
    • Autolink
    • Verbatim
    • Emphasis/strong
    • Highlighted
    • Super/subscript
    • Insert/delete
    • Smart punctuation
    • Math
    • Footnote reference
    • Line break
    • Comment
    • Symbols
    • Raw inline
    • Span
    • Inline attributes
  • Block syntax
    • Paragraph
    • Heading
    • Block quote
    • List item with the different marker types
    • List
    • Code block
    • Thematic break
    • Raw block
    • Div
    • Pipe table
    • Reference link definition
    • Footnote
    • Block attribute

Also contains some extra features not included in the Djot standard:

  • Parses an optional frontmatter at the very start of the file, e.g:

    ---toml
    tag = "Some value"
    ---
    
  • Highlights standalone TODO, NOTE and FIXME.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •