Javascript needed.

« Back to Docs

Baremark: A Tiny Markdown Engine

Content

Legend

Passed Failed All skipped

Symbols used in the test names below are: space (where needed for clarity), enter, tab, and no-break-space.

Unit Tests

The test cases below are intended as spec for Baremark, though they will evolve as Baremark does so.

Unit Tests for Baremark X

Baremark X is an experimental version of Baremark, which parses blocks and inline tags (somewhat) separately. For now it’s not recommended for installation.

CommmonMark 0.31.2 Unit Tests

These are the test cases of the CommonMark 0.31.2 spec run against Baremark. As Baremark is intended to be minimal in size, not all of these CommonMark tests will ever pass, but they can give you an idea of how compatible Baremark is.

The below CommonMark tests have been (slightly) reworked, so that whenever Baremark gives the equivalent output, it is considered a passing test. (E.g., when Baremark outputs HTML entities where CommonMark specify a normal character, or use <tt> instead of <code> etc that’s still considered passing.) If however, the Markdown tags span a different part of the text, or interpreted differently in other ways, that is considered a fail.

Test Framework

I kinda, sorta, accidentally put this very simple test framework/page together to present how well Baremark fared with the CommonMark test suite. The below “test results” are only meant to show what different kind of test results look like on the page.