A demonstrator of how χrust can be used to parse and transform documents.
On this page the editable pane on the left contains Markdown source. This is parsed into a χrust 'smite' tree and displayed (serialised as XML) in the next box. The tree is transformed using an XSL stylesheet to create a DocBook XML document, displayed in the third pane serialised as XML. Finally, the DocBook document is rendered into HTML with another XSL stylesheet and the resulting DOM nodes are directly inserted into the right-hand pane.
χrust's version of Markdown has the following usage:
For a heading put '#' as the first character on a line. This will signal the start of a db:sect1 element. Use '##' for a second level heading (db:sect2 element).
For emphasised (italic) text surround the text in '//', e.g. //this is emphasised//
For strong (bold) text surround the text in '**', e.g. **this is strong**
For underlined text surround the text in '__' (two underscores), e.g. __this is underlined__