Skip to content

Instantly share code, notes, and snippets.

@lyhcode
Created October 9, 2011 14:45
Show Gist options
  • Save lyhcode/1273765 to your computer and use it in GitHub Desktop.
Save lyhcode/1273765 to your computer and use it in GitHub Desktop.
JRST rst2html usages
@Grab('org.nuiton.jrst:jrst:1.4')
import org.nuiton.jrst.*
def reader = new StringReader('''
Title
=====
Contents here.
Sub title
---------
Contents again here.
* 1234
* 5678
''')
println JRST.generateString(JRST.TYPE_HTML_INNER_BODY, reader)
println JRST.generateString(JRST.TYPE_HTML, reader)
println JRST.generateString(JRST.TYPE_DOCBOOK, reader)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment