Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-REVIEW-003

Edit mode titles an open comment with its literal tag

While edit mode is on, when the writer opens an HTML comment chip, the preview SHALL title the opened block with the literal opening syntax of the comment, <!-- --> for a comment and <!-- TODO --> for a comment whose text starts with TODO in any case, and the renderer SHALL treat that comment as a TODO comment.

Another outcome at step 2 of path 1 in StRS-MDOKFSTUDIO-REVIEW-012, in the state “A chip stands in the text”.

Scenarios 4

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

nominalComment titles
SourceTitle of the opened block in edit mode
`<!-- a plain note -->``<!-- -->` in code font
`<!-- TODO: cite the slop zone -->``<!-- TODO -->` in code font
`<!-- todo lower case -->``<!-- TODO -->` in code font
A multi-line comment starting with TODO on its first line`<!-- TODO -->` in code font
boundaryRead mode
Giventhe same comments with edit mode off
Whena chip is opened
Thenthe title stays the word Comment, or TODO for a TODO comment
boundaryWhat is a TODO comment
Comment textKind
Starts with TODO, todo or Todo, with or without a colontodo (green chip)
Starts with TODOS or TODO_comment (gray chip)
Has TODO later in the text, not at the startcomment (gray chip)
refusalTitle is data
Givena comment whose text holds markup
Whenthe document is rendered
Thenthe title is the constant tag held in a `data-okf-tag` attribute, never the comment text

Implemented in 1

Tested by 4