Skip to content

Latest commit

 

History

History
56 lines (47 loc) · 1.28 KB

README.md

File metadata and controls

56 lines (47 loc) · 1.28 KB

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.