@Override public void nodeAdded(Node node) { validateLinked(node); myNodeClassifier.add(node); if (myHost != null) myHost.nodeAdded(node); }
private void processText(NodeTracker state, Text node) { BasedSequence original = node.getChars(); boolean wrapInTextBase = !(node.getParent() instanceof TextBase); TextBase textBase = null; while (wrapInTextBase) { if (wrapInTextBase) { wrapInTextBase = false; textBase = new TextBase(original); node.insertBefore(textBase); textBase.appendChild(node); state.nodeAdded(textBase); } } }
textBase = new TextBase(original); node.insertBefore(textBase); state.nodeAdded(textBase); Node node1 = new Text(escapedChars); textBase.appendChild(node1); state.nodeAdded(node1); state.nodeAdded(decorationNode); Node node1 = new Text(escapedChars); textBase.appendChild(node1); state.nodeAdded(node1);
textBase = new TextBase(original); node.insertBefore(textBase); state.nodeAdded(textBase); Node node1 = new Text(escapedChars); textBase.appendChild(node1); state.nodeAdded(node1); state.nodeAdded(decorationNode); Node node1 = new Text(escapedChars); textBase.appendChild(node1); state.nodeAdded(node1);
@Override public void process(NodeTracker state, Node node) { if (node instanceof Heading) { if (node.isOrDescendantOfType(BlockQuote.class)) { int tmp = 0; } Heading heading = (Heading) node; if (heading.getText().isNotNull()) { Node anchor = new AnchorLink(); if (!options.wrapText) { if (heading.getFirstChild() == null) { anchor.setChars(heading.getText().subSequence(0, 0)); heading.appendChild(anchor); } else { anchor.setChars(heading.getFirstChild().getChars().subSequence(0, 0)); heading.getFirstChild().insertBefore(anchor); } } else { anchor.takeChildren(heading); heading.appendChild(anchor); } anchor.setCharsFromContent(); state.nodeAdded(anchor); } } else { int tmp = 0; } }
@Override public void nodeAdded(Node node) { validateLinked(node); myNodeClassifier.add(node); if (myHost != null) myHost.nodeAdded(node); }
textBase = new TextBase(original); node.insertBefore(textBase); state.nodeAdded(textBase); Node node1 = new Text(escapedChars); textBase.appendChild(node1); state.nodeAdded(node1); state.nodeAdded(decorationNode); Node node1 = new Text(escapedChars); textBase.appendChild(node1); state.nodeAdded(node1);