package org.simantics.scl.compiler.markdown.nodes; public class ItemNode extends Node { public int indentation; public ItemNode(int indentation) { this.indentation = indentation; } @Override public boolean canContain(Node node) { return true; } public void toHtml(StringBuilder b) { toHtml(b, true); } public void toHtml(StringBuilder b, boolean tight) { if(firstChild == null) { b.append("
\n"); return; } else if(tight) { b.append("