Package ys.wikiparser
Class WikiParser
- java.lang.Object
-
- ys.wikiparser.WikiParser
-
- Direct Known Subclasses:
LuteceWikiParser
public class WikiParser extends Object
WikiParser.renderXHTML() is the main method of this class. It takes wiki-text and returns XHTML. WikiParser's behavior can be customized by overriding appendXxx() methods, which should make integration of this class into any wiki/blog/forum software easy and painless.- Author:
- Yaroslav Stavnichiy (yarosla@gmail.com)
-
-
Field Summary
Fields Modifier and Type Field Description static StringCUSTOM_INPUTS_TO_REEMPLACEStringmarkdown
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>extractCustomInputs()get custom inputs from the wiki textStringremplaceCustomInputs(String html, List<String> customInputsHtml)Preprocess wiki text before parsingstatic StringrenderXHTML(String wikiText)StringtoString()
-
-
-
Method Detail
-
remplaceCustomInputs
public String remplaceCustomInputs(String html, List<String> customInputsHtml)
Preprocess wiki text before parsing- Parameters:
wikiText-- Returns:
-
extractCustomInputs
public List<String> extractCustomInputs()
get custom inputs from the wiki text- Parameters:
wikiText-- Returns:
-
-