Class WikiRenderer

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class WikiRenderer extends WikiRenderer
Deprecated.
Provides backward compatibility for wiki renderer method.

  • Constructor Details

    • WikiRenderer

      public WikiRenderer()
      Deprecated.
  • Method Details

    • wiki2html

      @Deprecated public static String wiki2html(String text)
      Transform a given string formatted according the wiki text formatting rules in an HTML string.

      Warning: See warning in class javadoc for slight behavior change as compared to the original implementation

      Parameters:
      text - the wiki text to format
      Returns:
      an HTML formatted text
    • wiki2html

      @Deprecated public static String wiki2html(String text, String css, boolean isSpan, Locale userLocale)
      Transform a given string formatted according the wiki text formatting rules in an HTML string.
      Parameters:
      text - the wiki text to format
      css - the name of the CSS class to use
      isSpan - if true generate a span instead of div
      userLocale - an optional (though highly recommended) Locale of the user for which the text will be generated
      Returns:
      an HTML formatted text
      Since:
      jcms-5.5.0
    • wiki2html

      public static String wiki2html(String text, Locale userLocale, WikiRenderingHints hints)
      Transform a given string formatted according the wiki text formatting rules in an HTML string.
      Parameters:
      text - the wiki text to format. if null or empty, an empty string is immediately returned.
      userLocale - an optional (though highly recommended) Locale of the user for which the text will be generated. if null, the channel default locale will be used.
      hints - the rendering options to use, if null, the default options will be used.
      Returns:
      an HTML formatted text.
      Since:
      jcms-5.7.0