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 init

examples

test

run

expectedFailures

These all fail because of unicode issues in fantom

examplesToRun

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.5 ∙ 24-Feb-2026 14:33 EST