Class MarkdownFilter

    • Method Detail

      • setPreClass

        public void setPreClass​(@Nullable
                                String preClass)
        Class name to be added to each fenced code block. This can be used for syntax highlighters like prettify.
        Parameters:
        preClass - Name of the css class to be added to each fenced block.
        Since:
        2.4
      • createParserBuilder

        @Nonnull
        protected org.commonmark.parser.Parser.Builder createParserBuilder()
        Creates and configures a commonmark Parser.Builder to be used for parsing.

        Note that this method is commonmark specific and might be removed in future versions.

        Override this method to add commonmark extensions to the builder.

        Returns:
        Parser.Builder to be used for the markup parser
      • createHtmlRendererBuilder

        @Nonnull
        protected org.commonmark.renderer.html.HtmlRenderer.Builder createHtmlRendererBuilder()
        Creates and configures a commonmark HtmlRenderer.Builder to be used for rendering HTML. The default implementation adds an AttributeProvider that uses the LinkAnalyzer for analyzing links and generating HTML attributes.

        Note that this method is commonmark specific and might be removed in future versions.

        Override this method to add commonmark extensions to the builder.

        Returns:
        HtmlRenderer.Builder to be used for HTML rendering