Skip to content

Commit 2c41014

Browse files
committed
Added keyboard short codes
1 parent 754137f commit 2c41014

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

content/tests/styling.qmd

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,19 @@ The order of attribute for divs and spans follow rules defined in the [pandoc](h
879879
[This is *some text*]{.class key="val"}
880880
```
881881

882+
## Keyboard Shortcuts
883+
884+
The [kbd]{.text-success} shortcode can be used to describe keyboard shortcuts in documentation.
885+
886+
```md {.markdown shortcodes="false"}
887+
To print, press {{< kbd Shift-Ctrl-P >}}.
888+
To open an existing new project,
889+
press {{< kbd mac=Shift-Command-O win=Shift-Control-O linux=Shift-Ctrl-L >}}.
890+
```
891+
892+
To print, press {{< kbd Shift-Ctrl-P >}}.
893+
To open an existing new project, press {{< kbd mac=Shift-Command-O win=Shift-Control-O linux=Shift-Ctrl-L >}}.
894+
882895
## Listing
883896

884897
### Table

0 commit comments

Comments
 (0)