@Component(role=org.apache.maven.doxia.parser.Parser.class, hint="markdown") public class MarkdownParser extends AbstractTextParser implements TextMarkup
Implementation of Parser for Markdown documents.
Defers effective parsing to the flexmark-java library, which generates HTML content then delegates parsing of this content to a slightly modified Doxia Xhtml parser. (before 1.8, the PegDown library was used)
| Modifier and Type | Class and Description |
|---|---|
static class |
MarkdownParser.MarkdownHtmlParser
Internal parser for HTML generated by the Markdown library.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
ROLE_HINT
The role hint for the
MarkdownParser Plexus component. |
PIPECOLON, EOL, EQUAL, GREATER_THAN, LEFT_CURLY_BRACKET, LEFT_SQUARE_BRACKET, LESS_THAN, MINUS, PLUS, QUOTE, RIGHT_CURLY_BRACKET, RIGHT_SQUARE_BRACKET, SEMICOLON, SLASH, SPACE, STARROLE, TXT_TYPE, UNKNOWN_TYPE, XML_TYPE| Constructor and Description |
|---|
MarkdownParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
parse(Reader source,
Sink sink,
String reference) |
getTypedoxiaVersion, enableLogging, executeMacro, getBasedir, getLog, getMacroManager, init, isEmitComments, isSecondParsing, parse, parse, parse, setEmitComments, setSecondParsingpublic static final String ROLE_HINT
MarkdownParser Plexus component.public void parse(Reader source, Sink sink, String reference) throws ParseException
parse in interface ParserParseExceptionCopyright © 2005–2023 The Apache Software Foundation. All rights reserved.