class

CommonMarkSpecTest

abstract class CommonMarkSpecTest : Test

Runs all the tests from the common mark specification

The spec.json was generated from the commonmark-spec repo using this command:

python test/spec_tests.py --dump-tests > spec.json

The commonmark-java implementation actually does a simple parsing of the spec.md file to extract the examples, but we can't do that because of fantom unicode issues. Also, it would require a bit more code to do that and this prcoess is not so bad.

fields bySection

methods examples

examplesToRun

expectedFailures

These all fail because of unicode issues in fantom

init

run

test

bySection Str:Example[] : bySection

examples Example[] examples()

examplesToRun virtual Example[] examplesToRun()

expectedFailures virtual Int[] expectedFailures()

These all fail because of unicode issues in fantom

init Bool init()

run abstract ExampleRes run(Example example)

test Void test()

Haxall 4.0.7 ∙ 27-Oct-2026 09:10 EDT