Package ys.wikiparser

Class 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 Detail

      • CUSTOM_INPUTS_TO_REEMPLACE

        public static String CUSTOM_INPUTS_TO_REEMPLACE
      • markdown

        public String markdown
    • Method Detail

      • renderXHTML

        public static String renderXHTML​(String wikiText)
      • 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: