package org.simantics.scl.compiler.markdown.nodes;
+import org.simantics.scl.compiler.markdown.html.HtmlGenerationContext;
public class ListNode extends Node {
public char bulletChar;
}
@Override
- public void toHtml(StringBuilder b) {
+ public void toHtml(HtmlGenerationContext context, StringBuilder b) {
if(bulletChar == '+' || bulletChar == '-' || bulletChar == '*') {
b.append("<ul>\n");
for(Node child = firstChild; child != null; child = child.next)
- ((ItemNode)child).toHtml(b, tight);
+ ((ItemNode)child).toHtml(context, b, tight);
b.append("</ul>\n");
}
else {
else
b.append("<ol start=\"").append(start).append("\">\n");
for(Node child = firstChild; child != null; child = child.next)
- ((ItemNode)child).toHtml(b, tight);
+ ((ItemNode)child).toHtml(context, b, tight);
b.append("</ol>\n");
}
}