See: Description
Package | Description |
---|---|
org.commonmark |
Root package of commonmark-java
|
org.commonmark.node |
AST node types (see
Node ) and visitors (see AbstractVisitor ) |
org.commonmark.parser |
Parsing input text to AST nodes (see
Parser ) |
org.commonmark.parser.block |
Types for extending block parsing
|
org.commonmark.parser.delimiter | |
org.commonmark.renderer | |
org.commonmark.renderer.html |
HTML rendering (see
HtmlRenderer ) |
org.commonmark.renderer.text |
Text content rendering (see
TextContentRenderer ) |
Example:
import org.commonmark.node.*;
import org.commonmark.parser.Parser;
import org.commonmark.renderer.html.HtmlRenderer;
Parser parser = Parser.builder().build();
Node document = parser.parse("This is *Sparta*");
HtmlRenderer renderer = HtmlRenderer.builder().escapeHtml(true).build();
renderer.render(document); // "<p>This is <em>Sparta</em></p>\n"
See the following packages for details:
org.commonmark.parser
for parsing input text to AST nodesorg.commonmark.node
for AST node types and visitorsorg.commonmark.renderer.html
for HTML renderingCopyright © 2020 Atlassian. All rights reserved.