Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-PALETTE-114

Thread inserts an empty comment thread after the block with the author and the date

When the writer presses Thread, the extension SHALL insert after the block at the caret a comment made of the line `<!-- THREAD`, a line with the author and the local date and time, an indented empty line and the line `-->`, with the caret on the empty line.

Part of StRS-MDOKFSTUDIO-REVIEW-015, outside the paths drawn on its map.

Scenarios 3

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

nominalAfter a paragraph
Giventhe author Ada Lovelace and the caret in A paragraph.
WhenThread is pressed
Thenafter the paragraph and a blank line the thread skeleton with Ada Lovelace and the date as YYYY-MM-DD HH:MM is inserted and the caret is on the indented line
boundaryEmpty block and no author
Givenan empty text and no author name
WhenThread is pressed
Thenthe thread starts at the top without blank lines and the author is Anonymous
boundaryAuthor name with control characters
InputOutcome
Author name with control charactersThe control characters become blanks and runs of blanks collapse
Author name that is empty after this cleaningThe author is Anonymous

Implemented in 1

Tested by 1