Class WikiRenderer

    • Constructor Detail

      • WikiRenderer

        public WikiRenderer()
        Deprecated.
    • Method Detail

      • wiki2html

        @Deprecated
        public static java.lang.String wiki2html​(java.lang.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 java.lang.String wiki2html​(java.lang.String text,
                                                 java.lang.String css,
                                                 boolean isSpan,
                                                 java.util.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 java.lang.String wiki2html​(java.lang.String text,
                                                 java.util.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