Behaviour SwRS-MDOKFSTUDIO-PALETTE-278
Starter blocks insert a chart, a diagram or content tabs
When the writer picks Vega-Lite chart, Vega chart, PlantUML diagram or Content tabs in the palette or the slash menu, the extension SHALL insert a fenced starter block that renders, after the selection and set apart from the text around it, with its first placeholder word selected.
Part of StRS-MDOKFSTUDIO-PALETTE-021, outside the paths drawn on its map.
Scenarios 4
The situations the tests check; open one to read it.
nominalThe chart commands insert a starter chart
Givena paragraph and the caret at its end, in the Full palette mode
the edition palette in the Full mode on a block selection
the edition palette in the Full mode on a block selection
Whenthe writer picks Vega-Lite chart or Vega chart
the palette is shown and the writer types /chart or /vega in the slash menu
the palette is shown and the writer types /chart or /vega in the slash menu
Thena blank line and a fenced block (vega-lite or vega) with a three-bar chart with inline data are inserted after the selection, set apart from the text around it, with the words Chart title selected, and the block renders as a chart
the buttons of the MyST mode are followed by Vega-Lite chart and Vega chart (group full, one-click buttons with their label as tooltip) and the slash menu lists both commands under Full, /vega finding Vega first and /chart listing both (the alias chart is shared with Mermaid)
the buttons of the MyST mode are followed by Vega-Lite chart and Vega chart (group full, one-click buttons with their label as tooltip) and the slash menu lists both commands under Full, /vega finding Vega first and /chart listing both (the alias chart is shared with Mermaid)
nominalContent tabs inserts a tab set
Givena paragraph and the caret at its end, in the MyST or Full palette mode
Whenthe writer picks Content tabs in the palette or types /tab-set in the slash menu
Thena blank line and a `::::{tab-set}` container holding two `:::{tab-item}` tabs (Tab 1 and Tab 2, each with the body Content) are inserted after the selection, set apart from the text around it, with the words Tab 1 selected, and the block renders as a tab set
nominalPlantUML diagram inserts a sequence diagram
Givena paragraph and the caret at its end, in the Full palette mode
Whenthe writer picks PlantUML diagram in the palette or types /plantuml or /uml in the slash menu
Thena blank line and a fenced `plantuml` block with a two-actor sequence diagram (`@startuml` to `@enduml`) are inserted after the selection, set apart from the text around it, with the word Hello selected, and the block renders as a diagram
refusalA mode that does not list the action offers no command
Giventhe palette in a mode below the one that lists the action (Strict, GFM or MyST for the chart and PlantUML commands; Strict or GFM for Content tabs)
Whenthe palette is shown or the slash menu is typed with /vega, /tab-set or /plantuml
Thenno such command is offered; the charts, tab sets and diagrams of the document are rendered all the same (see SwRS-MDOKFSTUDIO-DIAG-121)
Implemented in 2
Tested by 3
Replaces
SwRS-MDOKFSTUDIO-PALETTE-265The Full palette mode adds Vega-Lite and Vega chart commands superseded superseded by SwRS-MDOKFSTUDIO-PALETTE-001, SwRS-MDOKFSTUDIO-PALETTE-278 Markdown file
SwRS-MDOKFSTUDIO-PALETTE-273The MyST palette mode adds a Content tabs command superseded superseded by SwRS-MDOKFSTUDIO-PALETTE-001, SwRS-MDOKFSTUDIO-PALETTE-278 Markdown file
SwRS-MDOKFSTUDIO-PALETTE-274The Full palette mode adds a PlantUML diagram command superseded superseded by SwRS-MDOKFSTUDIO-PALETTE-001, SwRS-MDOKFSTUDIO-PALETTE-278 Markdown file