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
| Mode | Typed | Outcome |
|---|---|---|
| strict | /hyperlink | Link is the first entry |
| strict | /ul and /ol | Bulleted list and Numbered list are found |
| strict | /list | both list entries are found |
| strict | /hr | Horizontal rule is the first entry |
| MyST | /table | the exact label Table is the first entry, followed by the other table commands |
| GFM | /center | Column alignment is found |
| GFM | /spoiler | Collapsible is the first entry |
| MyST | /xref | Reference is the first entry |
boundaryThe aliases of every command
| Group | Command | Aliases |
|---|---|---|
| strict inline | Bold | strong, b |
| strict inline | Italic | emphasis, em, i |
| strict inline | Strikethrough | strike, del, delete |
| strict inline | Colour | color, highlight, background |
| strict inline | Link | url, hyperlink |
| strict inline | Image | img, picture, photo |
| strict inline | Emoji | smiley, emoticon, face |
| strict inline | Thread | thread, discussion, comment |
| strict block | Code block | code, fence, snippet, pre |
| strict block | Bulleted list | bullet, bullets, ul, unordered, list, - and * |
| strict block | Numbered list | numbered, ol, ordered, list, 1. |
| strict block | Blockquote | quote, citation, bq |
| strict block | Horizontal rule | hr, divider, line, separator |
| table | Table | grid, tbl |
| table | HTML table | table, html |
| table | Column alignment | align, left, center, right |
| table | Table with caption | table, caption, list-table |
| table | List table | list-table, table, convert |
| table | Pipe table | pipe, table, convert |
| GitHub (GFM and MyST modes) | Alert | callout, github |
| GitHub (GFM and MyST modes) | Checkbox | todo, task, checklist, tasklist |
| GitHub (GFM and MyST modes) | Collapsible | collapse, toggle, spoiler, accordion |
| GitHub (GFM and MyST modes) | Footnote | fn, endnote |
| GitHub (GFM and MyST modes) | Key | kbd, key, keyboard, shortcut |
| MyST mode | Admonition | callout |
| MyST mode | Definition list | definition, dl, glossary |
| MyST mode | Math | equation, latex, formula, katex |
| MyST mode | Subscript | subscript |
| MyST mode | Superscript | superscript, power, exponent |
| MyST mode | Label | anchor, target |
| MyST mode | Reference | reference, xref, crossref |
| MyST mode | Document link | document, file, page |
| MyST mode | Citation | cite, citation, bibtex, bibliography |
| MyST mode | Dropdown | details, collapse |
| MyST mode | Figure | fig, image, picture |
| MyST mode | Key (MyST) | key, kbd, keyboard |
boundaryAn alias shared by two commands
| Mode | Typed | Outcome |
|---|---|---|
| MyST | /details | Dropdown is listed before the GitHub Collapsible, because the MyST group wins a near tie |
| GFM | /todo | the 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 place | Typed | Outcome |
|---|---|---|
| strict, caret outside a colour code | /color | Colour code is not listed |
| strict | the menu is opened | Collapsible and the other GitHub commands are not listed |
| caret outside a table of the form they convert | the menu is opened | List table and Pipe table are not listed; each appears only with the caret in a table of the form it converts |
| table cell | the menu is opened | only 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