public class FlexmarkProcessor extends Object implements MarkdownProcessor
This class provides an adapter for the flexmark-java Markdown processor.
The adapter supports the following flags:
-parser-profilecom.vladsch.flexmark.parser.ParserEmulationProfile. The name of the
profle is the lower case name of the enum value. At the time of this
writing supported names are:
-clear-extensions-extension <name>The parser also supports disabling the automatic highlight feature.
If you use this extension, you’ll most likely want to supply a modified style sheet because the standard stylesheet assumes all definition lists to be parameter defintion lists and formats them accordingly.
Here are the changes made for this documentation:
/* [MOD] */
/* .contentContainer .description dl dd, */ .contentContainer .details dl dt, .serializedFormContainer dl dt {
font-size:12px;
font-weight:bold;
margin:10px 0 0 0;
color:#4E4E4E;
}
/* [MOD] Added */
dl dt {
margin:10px 0 0 0;
}
/* [MOD] */
/* .contentContainer .description dl dd, */ .contentContainer .details dl dd, .serializedFormContainer dl dd {
margin:5px 0 10px 0px;
font-size:14px;
font-family:‘DejaVu Sans Mono’,monospace;
}
↩
INTERNAL_OPT_DISABLE_AUTO_HIGHLIGHT| Constructor and Description |
|---|
FlexmarkProcessor() |
| Modifier and Type | Method and Description |
|---|---|
int |
isSupportedOption(String option) |
void |
start(String[][] options)
Starts the processor with the given options.
|
String |
toHtml(String markdown)
Converts the given markdown test to HTML.
|
public FlexmarkProcessor()
public int isSupportedOption(String option)
isSupportedOption in interface OptionCheckerpublic void start(String[][] options)
MarkdownProcessorStarts the processor with the given options.
All processors should support the special option _disable-auto-highlight_.
The doclet maps its option -disable-auto-highlight to this special
processor option because disabling the auto highlight feature is usually
implemented by configuring the processors HTML renderer in some way.
start in interface MarkdownProcessoroptions - an array of options; each entry consists of an array that has
the option name as first entry and any parameters for that option as subsequent
entriespublic String toHtml(String markdown)
MarkdownProcessorConverts the given markdown test to HTML.
toHtml in interface MarkdownProcessormarkdown - the markdoen text