Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-PALETTE-125

Footnote adds a numbered reference and an empty definition at the end

When the writer presses Footnote, the extension SHALL add `[^n]` after the selection and an empty definition `[^n]:` at the end of the text, after the definitions already there, with the caret in it, where n is one more than the highest numeric label in use.

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

Scenarios 2

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

nominalNext number
Givena text that uses the labels [^1] and [^2]
WhenFootnote is pressed
Thenthe mark `[^3]` and the definition line `[^3]:` are added and the caret is after the definition marker
boundaryNamed labels
Givena text with only named labels
WhenFootnote is pressed
Thenthe number is 1, because named labels are not counted

Implemented in 1

Tested by 1