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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<org.commonmark.Extension>Creates a list of markdown extensions to be used.voidsetAutolinkEnabled(boolean autolink)Enables the autolink extension.Methods inherited from class org.shredzone.commons.text.filter.MarkdownFilter
apply, createHtmlRendererBuilder, createParserBuilder, setAnalyzer, setPreClassMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.shredzone.commons.text.TextFilter
toStringBuilder
-
Constructor Details
-
GithubFlavoredMarkdownFilter
public GithubFlavoredMarkdownFilter()
-
-
Method Details
-
setAutolinkEnabled
Enables the autolink extension. It is disabled by default, to give the user full control about link placement in the text.- Parameters:
autolink-trueto enable the autolink extension.falseby default.
-
createExtensionList
Description copied from class:MarkdownFilterCreates 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:
createExtensionListin classMarkdownFilter- Returns:
- Modifiable
Listof extensions
-