Dan-in-CA / dita-ot-markdown

Markdown parser and output for DITA-OT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Markdown DITA for DITA-OT

DITA-OT Markdown plug-in contains

  • a custom parser for Markdown to allow using Markdown DITA as a source document format,
  • and a transtype to generate Markdown from DITA source.

The Markdown DITA files need to use a subset of Markdown constructs for compatibility with DITA content models.

Requirements

DITA-OT 2.1 is required. Earlier versions of DITA-OT do not have the required extension points.

Build

  1. Run Gradle distribution task

    ./gradlew dist
    

Distribution ZIP file is generated under build/distributions.

Install

  1. Run plug-in installation command

    dita -install https://github.com/jelovirt/dita-ot-markdown/releases/download/1.0.0/com.elovirta.dita.markdown_1.0.0.zip
    

The dita command line tool requires no additional configuration; running DITA-OT using Ant requires adding plug-in contributed JAR files to CLASSPATH with e.g. -lib plugins/com.elovirta.dita.markdown.

Usage

Markdown DITA topics can only be used by linking to them in map files.

<map>
  <topicref href="test.md" format="markdown"/>
</map>

The format attribute value must be set to markdown in order to recognize files as Markdown DITA; file extension is not used to recognize format.

To publish Markdown DITA files, use markdown transtype.

See Syntax reference for XML and Markdown DITA correspondence.

Donating

Support this project and others by @jelovirt via Paypal.

License

DITA-OT Markdown is licensed for use under the Apache License 2.0.

About

Markdown parser and output for DITA-OT

License:Apache License 2.0


Languages

Language:XSLT 87.9%Language:Java 12.1%