1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-27 18:40:28 +00:00

Add more markdown toolbar buttons (#8395)

This commit is contained in:
Leilei332 2024-07-18 04:37:27 +08:00 committed by GitHub
parent fcb28df82c
commit a4649490de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,15 @@
title: $:/plugins/tiddlywiki/markdown/EditorToolbar/strikethrough
list-after: $:/core/ui/EditorToolbar/strikethrough
tags: $:/tags/EditorToolbar
icon: $:/core/images/strikethrough
caption: {{$:/language/Buttons/Strikethrough/Caption}} (Markdown)
description: {{$:/language/Buttons/Strikethrough/Hint}}
condition: [<targetTiddler>type[text/x-markdown]] [<targetTiddler>type[text/markdown]]
shortcuts: ((strikethrough))
<$action-sendmessage
$message="tm-edit-text-operation"
$param="wrap-selection"
prefix="~~"
suffix="~~"
/>

View File

@ -0,0 +1,15 @@
title: $:/plugins/tiddlywiki/markdown/EditorToolbar/subscript
list-after: $:/core/ui/EditorToolbar/subscript
tags: $:/tags/EditorToolbar
icon: $:/core/images/subscript
caption: {{$:/language/Buttons/Subscript/Caption}} (Markdown)
description: {{$:/language/Buttons/Subscript/Hint}}
condition: [<targetTiddler>type[text/x-markdown]] [<targetTiddler>type[text/markdown]]
shortcuts: ((subscript))
<$action-sendmessage
$message="tm-edit-text-operation"
$param="wrap-selection"
prefix="~"
suffix="~"
/>

View File

@ -0,0 +1,15 @@
title: $:/plugins/tiddlywiki/markdown/EditorToolbar/superscript
list-after: $:/core/ui/EditorToolbar/superscript
tags: $:/tags/EditorToolbar
icon: $:/core/images/superscript
caption: {{$:/language/Buttons/Superscript/Caption}} (Markdown)
description: {{$:/language/Buttons/Superscript/Hint}}
condition: [<targetTiddler>type[text/x-markdown]] [<targetTiddler>type[text/markdown]]
shortcuts: ((superscript))
<$action-sendmessage
$message="tm-edit-text-operation"
$param="wrap-selection"
prefix="^"
suffix="^"
/>