Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-PALETTE-132

Definition list makes the selection a term with a definition

When the writer presses Definition list, the extension SHALL add a line `: Definition` below the touched lines and select Definition, or insert a sample term and definition after the text when nothing is selected.

Part of StRS-MDOKFSTUDIO-PALETTE-021, outside the paths drawn on its map.

Scenarios 3

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

nominalSelection
Giventhe selected line Alpha
WhenDefinition list is pressed
Thenthe line `: Definition` follows Alpha and Definition is selected
nominalSample
Giventhe caret after Intro
WhenDefinition list is pressed
Thenthe lines Term and `: Definition` follow Intro after a blank line, with Term selected
boundaryThe term text
InputOutcome
A selected lineThe text of the term is not changed

Implemented in 1

Tested by 1