Software

Djot – lightweight markup language

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
MarkdownMarkup language and Text-to-HTML conversion tool
MultiMarkdownBased on Markdown with additional features
GitHub Flavored MarkdownFor user content on GitHub.com and GitHub Enterprise
Markdown ExtraLightweight markup language based on Markdown
AsciiDocPresentable text document format for writing articles
TextileBilled as a "humane web text generator"
TexyText-to-XHTML formatter and converter library
TomeMarkup Language and Tool Suite for Authors
reStructuredTextMarkup Syntax and Parser Component of Docutils
HamlTemplating engine for HTML
JsonMLMap between XML and JSON
TOMLTom’s Obvious Minimal Language
DjotLight markup language inspired by CommonMark
Org-modePlain text markup for notes, documents, and workflows

Best Free and Open Source Software 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.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted