Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-PALETTE-263

Slash commands have short alternative names

When the writer types an alternative name after the slash, the extension SHALL list the command that carries that alias among the commands of the current palette mode, as it lists it for its label.

Step 1 of path 2 in StRS-MDOKFSTUDIO-PALETTE-015: from “The slash menu lists the commands of the mode” to “The command found by its alias is lit”.

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

Scenarios 5

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

nominalAn alias finds its command
ModeTypedOutcome
strict/hyperlinkLink is the first entry
strict/ul and /olBulleted list and Numbered list are found
strict/listboth list entries are found
strict/hrHorizontal rule is the first entry
MyST/tablethe exact label Table is the first entry, followed by the other table commands
GFM/centerColumn alignment is found
GFM/spoilerCollapsible is the first entry
MyST/xrefReference is the first entry
boundaryThe aliases of every command
GroupCommandAliases
strict inlineBoldstrong, b
strict inlineItalicemphasis, em, i
strict inlineStrikethroughstrike, del, delete
strict inlineColourcolor, highlight, background
strict inlineLinkurl, hyperlink
strict inlineImageimg, picture, photo
strict inlineEmojismiley, emoticon, face
strict inlineThreadthread, discussion, comment
strict blockCode blockcode, fence, snippet, pre
strict blockBulleted listbullet, bullets, ul, unordered, list, - and *
strict blockNumbered listnumbered, ol, ordered, list, 1.
strict blockBlockquotequote, citation, bq
strict blockHorizontal rulehr, divider, line, separator
tableTablegrid, tbl
tableHTML tabletable, html
tableColumn alignmentalign, left, center, right
tableTable with captiontable, caption, list-table
tableList tablelist-table, table, convert
tablePipe tablepipe, table, convert
GitHub (GFM and MyST modes)Alertcallout, github
GitHub (GFM and MyST modes)Checkboxtodo, task, checklist, tasklist
GitHub (GFM and MyST modes)Collapsiblecollapse, toggle, spoiler, accordion
GitHub (GFM and MyST modes)Footnotefn, endnote
GitHub (GFM and MyST modes)Keykbd, key, keyboard, shortcut
MyST modeAdmonitioncallout
MyST modeDefinition listdefinition, dl, glossary
MyST modeMathequation, latex, formula, katex
MyST modeSubscriptsubscript
MyST modeSuperscriptsuperscript, power, exponent
MyST modeLabelanchor, target
MyST modeReferencereference, xref, crossref
MyST modeDocument linkdocument, file, page
MyST modeCitationcite, citation, bibtex, bibliography
MyST modeDropdowndetails, collapse
MyST modeFigurefig, image, picture
MyST modeKey (MyST)key, kbd, keyboard
boundaryAn alias shared by two commands
ModeTypedOutcome
MyST/detailsDropdown is listed before the GitHub Collapsible, because the MyST group wins a near tie
GFM/todothe TODO comment is the first entry, because its label is the exact match
refusalA command outside its mode or place is not listed
Mode and placeTypedOutcome
strict, caret outside a colour code/colorColour code is not listed
strictthe menu is openedCollapsible and the other GitHub commands are not listed
caret outside a table of the form they convertthe menu is openedList table and Pipe table are not listed; each appears only with the caret in a table of the form it converts
table cellthe menu is openedonly Bold, Italic, Strikethrough, Colour, Link and Emoji are listed
nominalA command found by an alias runs as its button
Giventhe menu lists a command found by one of its aliases
Whenthe writer chooses it
Thenit runs the same edit as its palette button, and Reference, Citation, Document link, Figure and Image open the same picker or dialog as their buttons

Implemented in 1

Tested by 2