Behaviour SwRS-MDOKFSTUDIO-CORE-088
CommonMark constructs render the same in every palette mode and in a long document
When a document holds CommonMark constructs, the extension SHALL render each as its matching HTML element, identically in every palette mode, and render a document of about 6000 lines completely.
Part of StRS-MDOKFSTUDIO-CORE-001, outside the paths drawn on its map.
Scenarios 3
The situations the tests check; open one to read it.
nominalRender the CommonMark constructs
Givena document with a heading of each level, a list, a quote, a thematic break, emphasis, a link, an image, inline code, strikethrough text and an h6 heading
Whenit is rendered
Theneach construct appears as its matching HTML element, as the table shows
| Input | Outcome |
|---|---|
| headings h1 to h6 | matching heading element of each level; the h6 renders as a heading, not as a paragraph |
| paragraph | paragraph element |
| bullet list, numbered list | matching list element |
| block quote | block quote element |
| thematic break | thematic break element |
| emphasis, strong text | matching emphasis and strong elements |
| link, image | matching link and image elements |
| inline code | inline code element |
| strikethrough text | struck through |
nominalRender identically in every palette mode
Givenone document
Whenit is rendered once per palette mode (Strict, GFM, MyST), the mode changing buttons only
Thenthe three HTML outputs are byte-identical and the content HTML is unchanged
boundaryRender a very long document completely
Givena document of about 6000 lines, holding 335 sections and 336 headings
Whenit is rendered and the end of the page is scrolled to
Thenall headings appear and the last paragraph is visible