The java example in the document is incorrect, I have modified it to the correct example
Before:
final String src = "Some *Markdown*";
final MarkdownFlavourDescriptor flavour = new GFMFlavourDescriptor();
final ASTNode parsedTree = new MarkdownParser(flavour).buildMarkdownTreeFromString(text);
final String html = new HtmlGenerator(src, parsedTree, flavour, false).generateHtml();
After:
final String src = "Some *Markdown*";
final MarkdownFlavourDescriptor flavour = new GFMFlavourDescriptor();
final ASTNode parsedTree = new MarkdownParser(flavour).buildMarkdownTreeFromString(src);
final String html = new HtmlGenerator(src, parsedTree, flavour, false)
.generateHtml(new HtmlGenerator.DefaultTagRenderer(
(astNode, charSequence, attributes) -> attributes,
false)
);
The java example in the document is incorrect, I have modified it to the correct example Before:
After: