Name

cx:commonmark — Transform a “CommonMark” flavored Markdown document into XHTML.

Synopsis

<p:declare-step type="cx:commonmark" xmlns:cx="http://xmlcalabash.com/ns/extensions">
     <p:output port="result"/>
     <p:option name="href" required="true"/>                       <!-- anyURI -->
</p:declare-step>

Description

This step converts a CommonMark flavored Markdown document into XHTML. It relies on the commonmark-java library to perform the underlying parsing.

The underlying parser returns a string containing the unparsed HTML characters. This step wraps that string in a body element in the XHTML namespace, parses that string as XML, and returns the resulting document.