@@ -1474,6 +1474,56 @@ test_single_write("Simple Table",
14741474 } ]
14751475} ] )
14761476
1477+ // TODO: issue #20
1478+ // test_single_write("Table after heading",
1479+ // `# Heading
1480+ // | Foo | Bar |
1481+ // | -- | -- |
1482+ // | a | b |`,
1483+ // [{
1484+ // type : smd.Token.Heading_1,
1485+ // children: ["Heading"],
1486+ // }, {
1487+ // type : smd.Token.Table,
1488+ // children: [{
1489+ // type: smd.Token.Table_Row,
1490+ // children: [
1491+ // {type: smd.Token.Table_Cell, children: [" Foo "]},
1492+ // {type: smd.Token.Table_Cell, children: [" Bar "]},
1493+ // ],
1494+ // }, {
1495+ // type: smd.Token.Table_Row,
1496+ // children: [
1497+ // {type: smd.Token.Table_Cell, children: [" a "]},
1498+ // {type: smd.Token.Table_Cell, children: [" b "]},
1499+ // ],
1500+ // }],
1501+ // }])
1502+ // test_single_write("Table after paragraph",
1503+ // `paragraph
1504+ // | Foo | Bar |
1505+ // | -- | -- |
1506+ // | a | b |`,
1507+ // [{
1508+ // type : smd.Token.Paragraph,
1509+ // children: ["paragraph"],
1510+ // }, {
1511+ // type : smd.Token.Table,
1512+ // children: [{
1513+ // type: smd.Token.Table_Row,
1514+ // children: [
1515+ // {type: smd.Token.Table_Cell, children: [" Foo "]},
1516+ // {type: smd.Token.Table_Cell, children: [" Bar "]},
1517+ // ],
1518+ // }, {
1519+ // type: smd.Token.Table_Row,
1520+ // children: [
1521+ // {type: smd.Token.Table_Cell, children: [" a "]},
1522+ // {type: smd.Token.Table_Cell, children: [" b "]},
1523+ // ],
1524+ // }],
1525+ // }])
1526+
14771527test_single_write ( "Table Empty Cells" ,
14781528`||
14791529|-|
0 commit comments