use of org.commonmark.node.Paragraph in project gitiles by GerritCodeReview.
the class MarkdownToHtml method visit.
private void visit(BlockNote node) {
html.open("div").attribute("class", node.getClassName());
Node f = node.getFirstChild();
if (f == node.getLastChild() && f instanceof Paragraph) {
// Avoid <p> inside <div> if there is only one <p>.
visitChildren(f);
} else {
visitChildren(node);
}
html.close("div");
}
Aggregations