Markdown OKF-Schema Studio

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
InputOutcome
headings h1 to h6matching heading element of each level; the h6 renders as a heading, not as a paragraph
paragraphparagraph element
bullet list, numbered listmatching list element
block quoteblock quote element
thematic breakthematic break element
emphasis, strong textmatching emphasis and strong elements
link, imagematching link and image elements
inline codeinline code element
strikethrough textstruck 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

Implemented in 1

Tested by 2