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


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


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.