Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-MYST-015

Admonitions and context tags read as distinct callouts

As a writer, I want admonitions and pasted context tags to look like the callouts readers will see, without building, so that I can review notes, warnings and prompts in VS Code.

Use case diagram

How it is split

This use case (StRS) is reached by 2 paths, one per coloured line. A path goes from one situation (circle) to the next; each step (pill) is a behaviour (SwRS) with its own tests.

path 1: An admonition path 2: A pasted context tag other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-MYST-001: Admonitions render as coloured callouts with a titleSwRS-MDOKFSTUDIO-MYST-0019 teststhe page renders a panel with thetitle, accent colour, badge andMarkdown body of its kindSwRS-MDOKFSTUDIO-MYST-006: Admonitions nest, collapse and map as one blockSwRS-MDOKFSTUDIO-MYST-0064 testsan admonition that containsanother directive shows the innerpanel inside its parentSwRS-MDOKFSTUDIO-MYST-013: Context tags render as titled panelsSwRS-MDOKFSTUDIO-MYST-0133 teststhe page renders a panel titledwith the literal tag around theMarkdown between the tagsSwRS-MDOKFSTUDIO-MYST-001: Admonitions render as coloured callouts with a titleSwRS-MDOKFSTUDIO-MYST-0019 testsa kind outside the namedlistSwRS-MDOKFSTUDIO-MYST-006: Admonitions nest, collapse and map as one blockSwRS-MDOKFSTUDIO-MYST-0064 testsa dropdown admonition collapses under its titleSwRS-MDOKFSTUDIO-MYST-013: Context tags render as titled panelsSwRS-MDOKFSTUDIO-MYST-0133 testsan unpaired or non-context tag stays visible as textA document holds an admonition directiveA document holds anadmonition directiveThe admonition is drawn as a panelThe admonition is drawnas a panelNested directives are drawn as panels inside their parentNested directives aredrawn as panels insidetheir parentA document holds a lower-case context tag alone on its line, with its closing tagA document holds alower-case context tagalone on its line, withits closing tagThe context is drawn as a titled panelThe context is drawn asa titled panel

This map has 77 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 3 behaviours on the map are tested one by one, with 21 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-MYST-001Admonitions render as coloured callouts with a title 9 testsSwRS-MDOKFSTUDIO-MYST-006Admonitions nest, collapse and map as one block 4 testsSwRS-MDOKFSTUDIO-MYST-013Context tags render as titled panels 3 tests