org.commonmark.node.Document Java Examples
The following examples show how to use
org.commonmark.node.Document.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MarkDownParser.java From blog-app-android with MIT License | 5 votes |
@Override public void visit(Paragraph paragraph) { super.visit(paragraph); final Block parent = paragraph.getParent(); if (parent instanceof Document) { if (parent.getFirstChild() == paragraph && parent.getLastChild() == paragraph) { while (paragraph.getFirstChild() != null) { paragraph.insertBefore(paragraph.getFirstChild()); } paragraph.unlink(); } } }
Example #2
Source File: DocumentBlockParser.java From 1Rramp-Android with MIT License | 4 votes |
@Override public Document getBlock() { return document; }
Example #3
Source File: MarkwonVisitorImpl.java From Markwon with Apache License 2.0 | 4 votes |
@Override public void visit(Document document) { visit((Node) document); }
Example #4
Source File: DocumentBlockParser.java From commonmark-java with BSD 2-Clause "Simplified" License | 4 votes |
@Override public Document getBlock() { return document; }