]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/markdown/nodes/ListNode.java
Markdown to HTML generator has now genration options
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / markdown / nodes / ListNode.java
index 1bf3397387b3c98fa4f0aa2d32cfb533d34fb706..82e123f263665d0bbe260cbe424736d759f61964 100644 (file)
@@ -1,5 +1,6 @@
 package org.simantics.scl.compiler.markdown.nodes;
 
+import org.simantics.scl.compiler.markdown.html.HtmlGenerationContext;
 
 public class ListNode extends Node {
     public char bulletChar;
@@ -25,11 +26,11 @@ public class ListNode extends Node {
     }
     
     @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 {
@@ -38,7 +39,7 @@ public class ListNode extends Node {
             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");
         }
     }