|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.exegetic.markout.MarkdownProcessor
public class MarkdownProcessor
Converts Markdown to XHTML. This class is actually just a glorified wrapper around MarkdownJ.
| Constructor Summary | |
|---|---|
MarkdownProcessor()
Constructs a MarkdownProcessor. |
|
| Method Summary | |
|---|---|
void |
loadProperties(java.lang.String filePath)
Load properties from an XML properties file. |
static void |
main(java.lang.String[] args)
So's this puppy can be called from the CLI. |
java.lang.String |
process(java.lang.String text)
Convert Markdown to XHTML. |
java.lang.String |
processWithTitle(java.lang.String text,
java.lang.String title)
Convert Markdown to XHTML. |
void |
wrapInCDATA(boolean value)
Determines if the XHTML output is wrapped in a CDATA block. |
void |
wrapInDocument(boolean value)
Determines if XHTML output is wrapped in a proper XHTML document. |
void |
wrapInParentElement(java.lang.String elementName)
Will wrap the resulting XHTML in an element, if not null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MarkdownProcessor()
| Method Detail |
|---|
public java.lang.String processWithTitle(java.lang.String text,
java.lang.String title)
text - Input markdown texttitle - Title of XHTML document
public java.lang.String process(java.lang.String text)
text - Input markdown text
public void wrapInCDATA(boolean value)
public void wrapInParentElement(java.lang.String elementName)
elementName - Name of the element that the XHTML should be wrapped in.public void wrapInDocument(boolean value)
public void loadProperties(java.lang.String filePath)
throws java.util.InvalidPropertiesFormatException,
java.io.IOException,
java.io.FileNotFoundException
filePath - The path to the properties file.
java.util.InvalidPropertiesFormatException
java.io.IOException
java.io.FileNotFoundExceptionpublic static void main(java.lang.String[] args)
-propfile - The path to the properties file. This is a flag, ie, -propfile [filePath]
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||