From 34f9cd952ce226342029b885b93538e5b7339dfa Mon Sep 17 00:00:00 2001 From: Max Schillinger Date: Thu, 12 May 2022 10:44:02 +0200 Subject: [PATCH] Markdown: Add code block button + enable shortcut (#6689) * Markdown: Add code block button and enable shortcut (ctrl-shift-M) * Support alternative type "text/markdown" --- .../markdown/EditorToolbar/mono-block.tid | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 plugins/tiddlywiki/markdown/EditorToolbar/mono-block.tid diff --git a/plugins/tiddlywiki/markdown/EditorToolbar/mono-block.tid b/plugins/tiddlywiki/markdown/EditorToolbar/mono-block.tid new file mode 100755 index 000000000..e73cc50ad --- /dev/null +++ b/plugins/tiddlywiki/markdown/EditorToolbar/mono-block.tid @@ -0,0 +1,17 @@ +title: $:/plugins/tiddlywiki/markdown/EditorToolbar/mono-block +list-after: $:/core/ui/EditorToolbar/mono-block +tags: $:/tags/EditorToolbar +icon: $:/core/images/mono-block +caption: {{$:/language/Buttons/MonoBlock/Caption}} (Markdown) +description: {{$:/language/Buttons/MonoBlock/Hint}} +condition: [type[text/x-markdown]] [type[text/markdown]] +button-classes: tc-text-editor-toolbar-item-start-group +shortcuts: ((mono-block)) + +<$action-sendmessage + $message="tm-edit-text-operation" + $param="wrap-lines" + prefix=" +```" + suffix="```" +/>