doxia-module-markdown
Markdown is a popular lightweight markup language, easy to read and easy to write. It is supported by a large panel of websites, text editors/IDEs and converter tools. Markdown format is supported both as source (parser) and destination (sink), the latter only since version 1.12.0.
Metadata
Although metadata was not part of the original Markdown format it is now widely supported through multiple extensions. This modules supports the following two metadata formats:
Metadata must be placed at the beginning of the document, before any other content.
Currently only the following metadata elements are supported:
title- the title of the document, used as the sink's titleauthor- the author of the document, used as the sink's authordate- the date of the document, used as the sink's date- everything else is just written as meta tags in the output document
Extensions
As the original Markdown specification is simple many extensions have been created to add features to the original Markdown format. The following extensions are supported by this module:
GFM (GitHub Flavored Markdown) extensions
GitHub specified extensions to the original Markdown and CommonMark format, which are now widely used. Some of these extensions are also supported by this module, namely
Others
Parser
The parser will first convert Markdown into HTML, convert to XHTML via JSoup and then parse the XHTML into Doxia Sink API methods calls leveraging the XHTML5 parser.
References
- Markdown project website
- CommonMark spec
- GitHub Flavored Markdown
- Markdown Wikipedia page
- flexmark-java, the library used by this Doxia module in
Pegdowncompatibility mode



