mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-04 23:39:57 +00:00
34f9cd952c
* Markdown: Add code block button and enable shortcut (ctrl-shift-M) * Support alternative type "text/markdown"
18 lines
564 B
Plaintext
Executable File
18 lines
564 B
Plaintext
Executable File
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="```"
|
|
/>
|