Created
October 9, 2011 14:45
-
-
Save lyhcode/1273765 to your computer and use it in GitHub Desktop.
JRST rst2html usages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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