Djot is a lightweight markup language for writing structured documents using readable plain text.
Created by John MacFarlane, Djot draws inspiration from CommonMark but uses different parsing rules intended to reduce ambiguities and simplify implementation.
The language addresses several limitations of traditional Markdown syntax. It aims to provide more predictable behaviour when parsing nested structures, formatting delimiters and document blocks.
Djot also incorporates features that generally require extensions in Markdown. Authors can include footnotes, tables, mathematical expressions and additional inline formatting without depending on a collection of independently defined Markdown extensions.
One of Djot’s distinguishing features is its attribute syntax. Attributes can be attached to document elements to provide identifiers, classes and other information used by processors or output formats.
The language provides generic containers for grouping blocks and inline content. This allows structured document elements to be represented without requiring dedicated syntax for every possible use.
Djot’s block syntax is designed for efficient, line-by-line parsing. Block structure can be identified without backtracking through the source, making parser behaviour easier to predict.
The project includes a formal syntax description, a quick-start guide for Markdown users and a reference implementation. Its syntax is intended for both ordinary document authoring and more structured publishing workflows.
This is free and open source software.
Key Features
- Headings, paragraphs, lists and block quotations.
- Definition lists and task lists.
- Pipe-delimited tables with column alignment.
- Table captions and header rows.
- Footnotes with references and definitions.
- Inline and display mathematical expressions.
- Insertion, deletion and highlighted-text markup.
- Superscripts and subscripts.
- Inline and reference-style links.
- Explicit attributes for classes, identifiers and key-value pairs.
- Generic block containers using fenced div syntax.
- Generic inline spans with attributes.
- Raw blocks and inline content for specific output formats.
- Automatic heading identifiers and implicit heading references.
- Smart punctuation and explicit escaping rules.
- Linear-time block parsing design.
Website: github.com/jgm/djot
Support:
Developer: John MacFarlane
License: MIT License
Related Software
| Lightweight Markup Languages | |
|---|---|
| Markdown | Markup language and Text-to-HTML conversion tool |
| MultiMarkdown | Based on Markdown with additional features |
| GitHub Flavored Markdown | For user content on GitHub.com and GitHub Enterprise |
| Markdown Extra | Lightweight markup language based on Markdown |
| AsciiDoc | Presentable text document format for writing articles |
| Textile | Billed as a "humane web text generator" |
| Texy | Text-to-XHTML formatter and converter library |
| Tome | Markup Language and Tool Suite for Authors |
| reStructuredText | Markup Syntax and Parser Component of Docutils |
| Haml | Templating engine for HTML |
| JsonML | Map between XML and JSON |
| TOML | Tom’s Obvious Minimal Language |
| Djot | Light markup language inspired by CommonMark |
| Org-mode | Plain text markup for notes, documents, and workflows |
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.