Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-CORE-028

Body text, headings, lists and block quotes are typeset readably

When the preview shows paragraphs, list items, table cells, quotes, captions, headings or lists, the extension SHALL use the preview font, the zoomed font size and the VS Code Markdown preview line height for the body text, and typeset headings, list spacing, block quotes and the end of the document by the rules of the scenarios.

Part of StRS-MDOKFSTUDIO-CODE-001, outside the paths drawn on its map.

Part of StRS-MDOKFSTUDIO-CORE-001, outside the paths drawn on its map.

Scenarios 6

The situations the tests check; open one to read it.

nominalBody text
Givena zoom of 120 percent
Whena paragraph is shown
Thenits font size is the zoomed size and its line height the Markdown preview value
a table cell shown in the same page uses the same font and line height
nominalHeadings
InputOutcome
any headingweight 600
h12em, with a bottom rule
h21.5em, with a bottom rule
h31.25em
h41em
a top-level heading after a floating figurestarts below the figure
nominalList spacing
Givena loose list
Whenit is shown
Thenparagraph margins inside items are reduced
a nested list indents each level by 2em
nominalBlock quote tint
Givena block quote in the Cream theme, in another forced theme or in the host theme
Whenit is shown
Thenit keeps its left rule and takes the block quote background token of that theme as its background
in the Cream theme that background is a step darker than the page
boundaryCode blocks do not take the link colour in the forced themes
InputOutcome
cream theme forced, YAML blockits tokens use the Dark+ colours like every language; the link colour no longer applies to code blocks (SwRS-MDOKFSTUDIO-CODE-040)
white theme forced, YAML blockits tokens use the Dark+ colours like every language
white theme forced, Python blockthe Python text does not use the link colour
boundaryReach the end of the document
Givena long document scrolled to its end, or a short document
Whenthe last block is shown
Thena bottom padding keeps it at least 30 px above the frame bottom

Implemented in 2

Tested by 5

Replaces

SwRS-MDOKFSTUDIO-CODE-038Colour YAML code text with the link colour in the forced white and cream themes superseded superseded by SwRS-MDOKFSTUDIO-CORE-028 Markdown file
SwRS-MDOKFSTUDIO-CORE-029Style headings superseded superseded by SwRS-MDOKFSTUDIO-CORE-028 Markdown file
SwRS-MDOKFSTUDIO-CORE-030Tighten list spacing superseded superseded by SwRS-MDOKFSTUDIO-CORE-028 Markdown file
SwRS-MDOKFSTUDIO-CORE-031Style inline code as a pill superseded superseded by SwRS-MDOKFSTUDIO-CORE-028 Markdown file
SwRS-MDOKFSTUDIO-CORE-032Keep inline code readable inside links superseded superseded by SwRS-MDOKFSTUDIO-CORE-028 Markdown file
SwRS-MDOKFSTUDIO-CORE-033Keep inline code compact in tables superseded superseded by SwRS-MDOKFSTUDIO-CORE-028 Markdown file
SwRS-MDOKFSTUDIO-CORE-037Reach the end of the document superseded superseded by SwRS-MDOKFSTUDIO-CORE-028 Markdown file