Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-MYST-017

Definition lists and inline roles are typeset

When a document holds a term followed by `: Definition` lines or an inline `{sub}`, `{sup}`, `{abbr}`, `{kbd}`, `{doc}`, `{download}` or `{numref}` role, the extension SHALL render a definition list, subscript, superscript, an abbreviation with its expansion as title, a keyboard key, a plain link to the written target, or an inert placeholder for the numbered reference.

Step 1 of path 1 in StRS-MDOKFSTUDIO-MYST-018: from “A document holds a definition list or an inline role” to “The text is typeset”.

Scenarios 4

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

nominalDefinition lists render
Givena term line and a `: Definition` line, and a definition list written by the palette Definition list button
Whenthe preview renders
Thena definition list with the term and the definition is shown (term and definition become dt and dd), the palette form rendering the same list form
nominalInline roles sub, sup, abbr and kbd
Given``{abbr}`HR (Heart Rate)` ``, and the roles `{sub}`, `{sup}` and `{kbd}`
Whenthe preview renders
ThenHR is shown with the title Heart Rate, and subscript, superscript and a keyboard key appear, each role mapping to its element (a `{kbd}` role inserted by the edition palette renders a kbd element)
boundaryDoc and download roles are plain links
Givena doc role and a download role, each written with a label and a target in angle brackets, and a doc role written with a bare target
Whenthe preview renders
Theneach is a plain link whose `href` is the written target, with the label as text; a role written without a label shows the written target as text (the file name for a download role)
refusalNumbered references stay inert placeholders
Given``{numref}`fig-x` `` where `(fig-x)=` labels a heading in the same buffer, and the same role with an explicit title
Whenthe preview renders
Thenan inert placeholder (`reference role unhandled`) holding the role name and the written key is shown, not a numbered link, and the same holds with the explicit title

Implemented in 1

Tested by 3

Known limits (1)

Replaces

SwRS-MDOKFSTUDIO-MYST-018Inline roles sub, sup, abbr and kbd render superseded superseded by SwRS-MDOKFSTUDIO-MYST-017 Markdown file
SwRS-MDOKFSTUDIO-MYST-095Doc and download roles render as plain links superseded superseded by SwRS-MDOKFSTUDIO-MYST-017 Markdown file