Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-REVIEW-139

TODO words and TODO comments show as green chips

When a paragraph holds the word TODO not glued to letters, digits or an underscore, or an HTML comment starts with that word in any case (with or without a colon, on one or several lines), the renderer SHALL replace the word by a green TODO chip titled TODO and leave the rest of the sentence unchanged, and leave the word TODO plain in inline code, a fenced code block, link text, a URL and math.

Another outcome at step 1 of path 1 in StRS-MDOKFSTUDIO-REVIEW-012, in the state “A document holds an HTML comment”.

Scenarios 5

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

nominalWord in a sentence
Giventhe text "We still TODO this part, TODOs and todo stay plain."
Whenthe document is rendered
Thenone green chip replaces the first TODO and the text content of the sentence is unchanged
boundaryGlued or lower case
Giventhe words TODOs and todo
Whenthe document is rendered
Thenthey stay plain text
refusalTODO in code, links and URLs
InputOutcome
TODO in backticksNo chip is written
TODO in a link textNo chip is written
TODO in a URLNo chip is written
TODO in a fenced blockNo chip is written
TODO between dollar signs (math)No chip is written
nominalTODO comment
Giventhe comment "`<!-- TODO: finish the chapter -->`" or "`<!-- todo finish the chapter -->`"
Whenthe document is rendered
Thena wrapper of kind todo holds a green chip reading TODO with the title "TODO: finish the chapter" and a hidden body with the comment text
boundaryComment word glued to letters
Givena comment starting with TODOS
Whenthe document is rendered
Thenit is a gray comment chip

Implemented in 1

Tested by 1