XMLmind DITA Converter (ditac) fully supports MDITA
, which specifies how to write DITA topics and maps in Markdown
. However for this to work, the file extension of the topic or map written in Markdown
must be md, markdown, mdown, mkdn, mdwn, mkd or rmd.
--- id: ??? --- # Topic title here Short description here. Topic body starts here.
# Map title here {.map}
- [???](???)
- [???](???)
- [???](???)
- [???](???)
{.map} class attribute added to the title of the map. Without it, the above template would be
translated to a DITA topic.window-1252 on a Western PC).UTF-8 or UTF-16 BOM (Byte Order Mark) or add an encoding directive inside a comment anywhere at the beginning of your file. Example:<!-- -*- coding: iso-8859-1 -*- --> Heading ======= ## Sub-heading Paragraphs are separated by a blank line.
coding."???" like in the above template), the topic is automatically given an ID based on the
basename(1) of the file containing it. Examples id="intro" if the MDITA topic is found in file "intro.md", id="Basic_Concepts" if found in "Basic Concepts.md".{.concept} class attribute to the title of an MDITA topic may be used to generate a DITA concept rather
than a DITA topic.[text](#TARGET_ID) or [text](#./TARGET_ID) or [text](#TOPIC_ID/TARGET_ID).ditac Markdown parser is configured to support the commonmark 0.28 “Markdown dialect” plus all the following extensions:ditac to implement Markdown support, all this can be configured by the means of -p load.mdita.XXX parameters. These load.mdita.XXX parameters are documented below.{.map} class attribute added to the title of an MDITA map, this map is confused with a topic.[text](TOPIC_PATH#TOPIC_ID/TARGET_ID). Something like [text](TOPIC_PATH#TARGET_ID) or [text](TOPIC_PATH#./TARGET_ID) won’t work.load.mdita.XXX parametersload.mdita.XXX parameters are implicitely passed to ditac.-p load.mdita.abbreviation true -p load.mdita.admonition true -p load.mdita.attributes true -p load.mdita.definition true -p load.mdita.footnotes true -p load.mdita.gfm-strikethrough true -p load.mdita.ins true -p load.mdita.superscript true -p load.mdita.tables true -p load.mdita.typographic true -p load.mdita.yaml-front-matter true
autolink Markdown extension(2) and also the task lists -p load.mdita.profile GITHUB-p load.mdita.extensions min-p load.mdita.autolink true-p load.mdita.gfm-tasklist trueCOMMONMARK, COMMONMARK_0_26, COMMONMARK_0_27, COMMONMARK_0_28, FIXED_INDENT, KRAMDOWN, MARKDOWN, GITHUB_DOC, GITHUB, MULTI_MARKDOWN, PEGDOWN, PEGDOWN_STRICT. See Markdown Processor Emulation load.mdita.extensions may be given the following values:noneminebookc to reset its extensions to the following minimal set of extensions:
most‣ Parent topic: Appendix B. Lightweight DITA support
| (1) | The file extension is removed and non-NCName characters are replaced by '_'. |
| (2) | Turns plain text URLs and email addresses into <xref href="..."> elements. |