mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Markdown: Add code block button + enable shortcut (#6689)
* Markdown: Add code block button and enable shortcut (ctrl-shift-M) * Support alternative type "text/markdown"
This commit is contained in:
parent
7a7d3571cc
commit
34f9cd952c
17
plugins/tiddlywiki/markdown/EditorToolbar/mono-block.tid
Executable file
17
plugins/tiddlywiki/markdown/EditorToolbar/mono-block.tid
Executable file
@ -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: [<targetTiddler>type[text/x-markdown]] [<targetTiddler>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="```"
|
||||
/>
|
Loading…
Reference in New Issue
Block a user