markdown
Version:
A sensible Markdown parser for javascript
48 lines (47 loc) • 2.33 kB
JSON
["html", ["p", "Combined emphasis:"],
["ol", ["li", ["strong", ["em", "test test"]]],
["li", ["strong", ["em", "test test"]]],
["li", ["em", "test ", ["strong", "test"]]],
["li", ["strong", "test ", ["em", "test"]]],
["li", ["strong", ["em", "test"], " test"]],
["li", ["em", ["strong", "test"], " test"]],
["li", ["strong", ["em", "test"], " test"]],
["li", ["strong", "test ", ["em", "test"]]],
["li", ["em", "test ", ["strong", "test"]]],
["li", ["em", "test ", ["strong", "test"]]],
["li", ["strong", "test ", ["em", "test"]]],
["li", ["strong", ["em", "test"], " test"]],
["li", ["em", ["strong", "test"], " test"]],
["li", ["strong", ["em", "test"], " test"]],
["li", ["strong", "test ", ["em", "test"]]],
["li", ["em", "test ", ["strong", "test"]]]],
["p", "Incorrect nesting:"],
["ol", ["li", "*test ", ["strong", "test* test"]],
["li", "_test ", ["strong", "test_ test"]],
["li", "**test ", ["em", "test"], "* test*"],
["li", "__test ", ["em", "test"], "_ test_"],
["li", ["em", "test *test"], " test*"],
["li", ["em", "test _test"], " test_"],
["li", ["strong", "test ", ["strong", "test"], " test"]],
["li", ["strong", "test ", ["strong", "test"], " test"]]],
["p", "No emphasis:"],
["ol", ["li", "test* test *test"],
["li", "test** test **test"],
["li", "test_ test _test"],
["li", "test__ test __test"]],
["p", "Middle-word emphasis (asterisks):"],
["ol", ["li", ["em", "a"], "b"],
["li", "a", ["em", "b"]],
["li", "a", ["em", "b"], "c"],
["li", ["strong", "a"], "b"],
["li", "a", ["strong", "b"]],
["li", "a", ["strong", "b"], "c"]],
["p", "Middle-word emphasis (underscore):"],
["ol", ["li", ["em", "a"], "b"],
["li", "a", ["em", "b"]],
["li", "a", ["em", "b"], "c"],
["li", ["strong", "a"], "b"],
["li", "a", ["strong", "b"]],
["li", "a", ["strong", "b"], "c"]],
["p", "my", ["em", "precious"], "file.txt"], "\u000a\u000a", ["h2", "Tricky Cases"], "\u000a\u000a", ["p", "E**. ", ["strong", "Test"], " TestTestTest"],
["p", "E**. ", ["strong", "Test"], " Test Test Test"]]