This is an experimental Tree-sitter grammar for Djot.
Aims to be fully feature complete with the Djot specification with a few extra features:
-
Parses an optional frontmatter at the very start of the file, e.g:
---toml tag = "Some value" ---
-
Parses tight sublists.
Normally in Djot you need to surround a list inside a list with spaces:
- List - Another - list
This grammar doesn't require a space and recognizes this as a sublist:
- List - Another - list
-
Parses standalone
TODO
,NOTE
andFIXME
.