use of org.apache.wiki.markdown.MarkdownForJSPWikiExtension in project jspwiki by apache.
the class MarkdownDocument method options.
/**
* configuration options for MarkdownRenderers.
*
* @param context current wikicontext
* @return configuration options for MarkdownRenderers.
*/
public static MutableDataSet options(final WikiContext context) {
MutableDataSet options = new MutableDataSet();
options.setFrom(ParserEmulationProfile.COMMONMARK);
// align style of Markdown's footnotes extension with jspwiki footnotes refs
options.set(FootnoteExtension.FOOTNOTE_LINK_REF_CLASS, JSPWikiMarkupParser.CLASS_FOOTNOTE_REF);
options.set(Parser.EXTENSIONS, Arrays.asList(new Extension[] { new MarkdownForJSPWikiExtension(context), FootnoteExtension.create(), TocExtension.create() }));
return options;
}
Aggregations