Commits

shemnon  committed 01b2ef7

Fix some (but not all) bullet list problems.
upgrade to pegdown 1.2.1

  • Participants
  • Parent commits 3fd686b

Comments (0)

Files changed (2)

File markdown-node/build.gradle

 
 dependencies {
     provided fileTree(dir: "${System.properties['java.home']}", include: ["**/jfxrt.jar"])
-    compile 'org.pegdown:pegdown:1.2.0'
+    compile 'org.pegdown:pegdown:1.2.1'
     testCompile 'junit:junit:4.11'
 }

File markdown-node/src/main/java/org/bitbucket/shemnon/mdnode/MarkdownVisitor.java

         vbox.getStyleClass().add(cssClass);
 
         currentCollector.getChildren().add(vbox);
+        vbox.setMinHeight(Region.USE_PREF_SIZE);
+        vbox.setMaxHeight(Region.USE_PREF_SIZE);
 
         pushNode(vbox);
     }
         bt.getStyleClass().add(MarkdownToNodeGenerator.STYLE_CLASS_BULLET);
 
         VBox bulletContent = new VBox();
-        bulletContent.setAlignment(Pos.BASELINE_LEFT);
+        bulletContent.setMinHeight(Region.USE_PREF_SIZE);
+        bulletContent.setMaxHeight(Region.USE_PREF_SIZE);
         bulletContent.getStyleClass().setAll(cssClasses);
         bulletContent.getStyleClass().add(MarkdownToNodeGenerator.STYLE_CLASS_LIST_CONTENT);
 
         HBox hb = new HBox();
+        hb.setMinHeight(Region.USE_PREF_SIZE);
+        hb.setMaxHeight(Region.USE_PREF_SIZE);
         hb.setAlignment(Pos.BASELINE_LEFT);
 
         hb.getChildren().setAll(bt, bulletContent);
-        HBox.setHgrow(bt, Priority.NEVER);
-        HBox.setHgrow(bulletContent, Priority.ALWAYS);
 
         currentCollector.getChildren().add(hb);
 
     }
 
     @Override
+    public void visit(TableCaptionNode node) {
+        //TODO Table captions not supported right now
+    }
+
+    @Override
     public void visit(TableCellNode node) {
         System.out.println("TableCell Node");
         visitChildren(node);