Class GithubFlavoredMarkdownFilter

java.lang.Object
org.shredzone.commons.text.filter.MarkdownFilter
org.shredzone.commons.text.filter.GithubFlavoredMarkdownFilter
All Implemented Interfaces:
Function<CharSequence,​CharSequence>, TextFilter

A filter that converts Markdown to HTML, but adding GitHub Flavored Markdown.
Since:
2.8
Author:
Richard "Shred" Körber
See Also:
GitHub Flavored Markdown Spec, commonmark-java
  • Constructor Details

  • Method Details

    • setAutolinkEnabled

      public void setAutolinkEnabled(boolean autolink)
      Enables the autolink extension. It is disabled by default, to give the user full control about link placement in the text.
      Parameters:
      autolink - true to enable the autolink extension. false by default.
    • createExtensionList

      protected List<org.commonmark.Extension> createExtensionList()
      Description copied from class: MarkdownFilter
      Creates a list of markdown extensions to be used. By default this list is empty. Subclasses may add extensions to the list.

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

      Overrides:
      createExtensionList in class MarkdownFilter
      Returns:
      Modifiable List of extensions