- System.out.println("HEADING!! " + token.token);
- int level = token.token.length()-1;
-// createHeading(fromOrg(token.reminder), level);
+ // expected sample heading:
+ // ***** test heading
+
+ String[] headingSections = String2.getGroups(token.token, "(\\*+)[ \\t](.*)\\r?\\n");
+ int level = headingSections[0].length();
+ String title = headingSections[1];
+ createHeading(fromOrg(title), level);