mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-03 00:52:59 +00:00
Update codemirror and markdown plugins from #2315
This commit is contained in:
15
plugins/tiddlywiki/markdown/EditorToolbar/bold.tid
Executable file
15
plugins/tiddlywiki/markdown/EditorToolbar/bold.tid
Executable file
@@ -0,0 +1,15 @@
|
||||
title: $:/plugins/tiddlywiki/markdown/EditorToolbar/bold
|
||||
list-after: $:/core/ui/EditorToolbar/bold
|
||||
tags: $:/tags/EditorToolbar
|
||||
icon: $:/core/images/bold
|
||||
caption: {{$:/language/Buttons/Bold/Caption}} (Markdown)
|
||||
description: {{$:/language/Buttons/Bold/Hint}}
|
||||
condition: [<targetTiddler>type[text/x-markdown]]
|
||||
shortcuts: ((bold))
|
||||
|
||||
<$action-sendmessage
|
||||
$message="tm-edit-text-operation"
|
||||
$param="wrap-selection"
|
||||
prefix="**"
|
||||
suffix="**"
|
||||
/>
|
||||
15
plugins/tiddlywiki/markdown/EditorToolbar/heading-1.tid
Executable file
15
plugins/tiddlywiki/markdown/EditorToolbar/heading-1.tid
Executable file
@@ -0,0 +1,15 @@
|
||||
title: $:/plugins/tiddlywiki/markdown/EditorToolbar/heading-1
|
||||
list-after: $:/core/ui/EditorToolbar/heading-1
|
||||
tags: $:/tags/EditorToolbar
|
||||
icon: $:/core/images/heading-1
|
||||
caption: {{$:/language/Buttons/Heading1/Caption}} (Markdown)
|
||||
description: {{$:/language/Buttons/Heading1/Hint}}
|
||||
condition: [<targetTiddler>type[text/x-markdown]]
|
||||
shortcuts: ((heading-1))
|
||||
|
||||
<$action-sendmessage
|
||||
$message="tm-edit-text-operation"
|
||||
$param="prefix-lines"
|
||||
character="#"
|
||||
count="1"
|
||||
/>
|
||||
15
plugins/tiddlywiki/markdown/EditorToolbar/heading-2.tid
Executable file
15
plugins/tiddlywiki/markdown/EditorToolbar/heading-2.tid
Executable file
@@ -0,0 +1,15 @@
|
||||
title: $:/plugins/tiddlywiki/markdown/EditorToolbar/heading-2
|
||||
list-after: $:/core/ui/EditorToolbar/heading-2
|
||||
tags: $:/tags/EditorToolbar
|
||||
icon: $:/core/images/heading-2
|
||||
caption: {{$:/language/Buttons/Heading2/Caption}} (Markdown)
|
||||
description: {{$:/language/Buttons/Heading2/Hint}}
|
||||
condition: [<targetTiddler>type[text/x-markdown]]
|
||||
shortcuts: ((heading-2))
|
||||
|
||||
<$action-sendmessage
|
||||
$message="tm-edit-text-operation"
|
||||
$param="prefix-lines"
|
||||
character="#"
|
||||
count="2"
|
||||
/>
|
||||
15
plugins/tiddlywiki/markdown/EditorToolbar/heading-3.tid
Executable file
15
plugins/tiddlywiki/markdown/EditorToolbar/heading-3.tid
Executable file
@@ -0,0 +1,15 @@
|
||||
title: $:/plugins/tiddlywiki/markdown/EditorToolbar/heading-3
|
||||
list-after: $:/core/ui/EditorToolbar/heading-3
|
||||
tags: $:/tags/EditorToolbar
|
||||
icon: $:/core/images/heading-3
|
||||
caption: {{$:/language/Buttons/Heading3/Caption}} (Markdown)
|
||||
description: {{$:/language/Buttons/Heading3/Hint}}
|
||||
condition: [<targetTiddler>type[text/x-markdown]]
|
||||
shortcuts: ((heading-3))
|
||||
|
||||
<$action-sendmessage
|
||||
$message="tm-edit-text-operation"
|
||||
$param="prefix-lines"
|
||||
character="#"
|
||||
count="3"
|
||||
/>
|
||||
15
plugins/tiddlywiki/markdown/EditorToolbar/heading-4.tid
Executable file
15
plugins/tiddlywiki/markdown/EditorToolbar/heading-4.tid
Executable file
@@ -0,0 +1,15 @@
|
||||
title: $:/plugins/tiddlywiki/markdown/EditorToolbar/heading-4
|
||||
list-after: $:/core/ui/EditorToolbar/heading-4
|
||||
tags: $:/tags/EditorToolbar
|
||||
icon: $:/core/images/heading-4
|
||||
caption: {{$:/language/Buttons/Heading4/Caption}} (Markdown)
|
||||
description: {{$:/language/Buttons/Heading4/Hint}}
|
||||
condition: [<targetTiddler>type[text/x-markdown]]
|
||||
shortcuts: ((heading-4))
|
||||
|
||||
<$action-sendmessage
|
||||
$message="tm-edit-text-operation"
|
||||
$param="prefix-lines"
|
||||
character="#"
|
||||
count="4"
|
||||
/>
|
||||
15
plugins/tiddlywiki/markdown/EditorToolbar/heading-5.tid
Executable file
15
plugins/tiddlywiki/markdown/EditorToolbar/heading-5.tid
Executable file
@@ -0,0 +1,15 @@
|
||||
title: $:/plugins/tiddlywiki/markdown/EditorToolbar/heading-5
|
||||
list-after: $:/core/ui/EditorToolbar/heading-5
|
||||
tags: $:/tags/EditorToolbar
|
||||
icon: $:/core/images/heading-5
|
||||
caption: {{$:/language/Buttons/Heading5/Caption}} (Markdown)
|
||||
description: {{$:/language/Buttons/Heading5/Hint}}
|
||||
condition: [<targetTiddler>type[text/x-markdown]]
|
||||
shortcuts: ((heading-5))
|
||||
|
||||
<$action-sendmessage
|
||||
$message="tm-edit-text-operation"
|
||||
$param="prefix-lines"
|
||||
character="#"
|
||||
count="5"
|
||||
/>
|
||||
15
plugins/tiddlywiki/markdown/EditorToolbar/heading-6.tid
Executable file
15
plugins/tiddlywiki/markdown/EditorToolbar/heading-6.tid
Executable file
@@ -0,0 +1,15 @@
|
||||
title: $:/plugins/tiddlywiki/markdown/EditorToolbar/heading-6
|
||||
list-after: $:/core/ui/EditorToolbar/heading-6
|
||||
tags: $:/tags/EditorToolbar
|
||||
icon: $:/core/images/heading-6
|
||||
caption: {{$:/language/Buttons/Heading6/Caption}} (Markdown)
|
||||
description: {{$:/language/Buttons/Heading6/Hint}}
|
||||
condition: [<targetTiddler>type[text/x-markdown]]
|
||||
shortcuts: ((heading-6))
|
||||
|
||||
<$action-sendmessage
|
||||
$message="tm-edit-text-operation"
|
||||
$param="prefix-lines"
|
||||
character="#"
|
||||
count="6"
|
||||
/>
|
||||
15
plugins/tiddlywiki/markdown/EditorToolbar/italic.tid
Executable file
15
plugins/tiddlywiki/markdown/EditorToolbar/italic.tid
Executable file
@@ -0,0 +1,15 @@
|
||||
title: $:/plugins/tiddlywiki/markdown/EditorToolbar/italic
|
||||
list-after: $:/core/ui/EditorToolbar/italic
|
||||
tags: $:/tags/EditorToolbar
|
||||
icon: $:/core/images/italic
|
||||
caption: {{$:/language/Buttons/Italic/Caption}} (Markdown)
|
||||
description: {{$:/language/Buttons/Italic/Hint}}
|
||||
condition: [<targetTiddler>type[text/x-markdown]]
|
||||
shortcuts: ((italic))
|
||||
|
||||
<$action-sendmessage
|
||||
$message="tm-edit-text-operation"
|
||||
$param="wrap-selection"
|
||||
prefix="*"
|
||||
suffix="*"
|
||||
/>
|
||||
15
plugins/tiddlywiki/markdown/EditorToolbar/list-bullet.tid
Executable file
15
plugins/tiddlywiki/markdown/EditorToolbar/list-bullet.tid
Executable file
@@ -0,0 +1,15 @@
|
||||
title: $:/plugins/tiddlywiki/markdown/EditorToolbar/list-bullet
|
||||
list-after: $:/core/ui/EditorToolbar/list-bullet
|
||||
tags: $:/tags/EditorToolbar
|
||||
icon: $:/core/images/list-bullet
|
||||
caption: {{$:/language/Buttons/ListBullet/Caption}} (Markdown)
|
||||
description: {{$:/language/Buttons/ListBullet/Hint}}
|
||||
condition: [<targetTiddler>type[text/x-markdown]]
|
||||
shortcuts: ((list-bullet))
|
||||
|
||||
<$action-sendmessage
|
||||
$message="tm-edit-text-operation"
|
||||
$param="prefix-lines"
|
||||
character="*"
|
||||
count="1"
|
||||
/>
|
||||
15
plugins/tiddlywiki/markdown/EditorToolbar/list-number.tid
Executable file
15
plugins/tiddlywiki/markdown/EditorToolbar/list-number.tid
Executable file
@@ -0,0 +1,15 @@
|
||||
title: $:/plugins/tiddlywiki/markdown/EditorToolbar/list-number
|
||||
list-after: $:/core/ui/EditorToolbar/list-number
|
||||
tags: $:/tags/EditorToolbar
|
||||
icon: $:/core/images/list-number
|
||||
caption: {{$:/language/Buttons/ListNumber/Caption}} (Markdown)
|
||||
description: {{$:/language/Buttons/ListNumber/Hint}}
|
||||
condition: [<targetTiddler>type[text/x-markdown]]
|
||||
shortcuts: ((list-number))
|
||||
|
||||
<$action-sendmessage
|
||||
$message="tm-edit-text-operation"
|
||||
$param="prefix-lines"
|
||||
character="1."
|
||||
count="1"
|
||||
/>
|
||||
15
plugins/tiddlywiki/markdown/EditorToolbar/mono-line.tid
Executable file
15
plugins/tiddlywiki/markdown/EditorToolbar/mono-line.tid
Executable file
@@ -0,0 +1,15 @@
|
||||
title: $:/plugins/tiddlywiki/markdown/EditorToolbar/mono-line
|
||||
list-after: $:/core/ui/EditorToolbar/mono-line
|
||||
tags: $:/tags/EditorToolbar
|
||||
icon: $:/core/images/mono-line
|
||||
caption: {{$:/language/Buttons/MonoLine/Caption}} (Markdown)
|
||||
description: {{$:/language/Buttons/MonoLine/Hint}}
|
||||
condition: [<targetTiddler>type[text/x-markdown]]
|
||||
shortcuts: ((mono-line))
|
||||
|
||||
<$action-sendmessage
|
||||
$message="tm-edit-text-operation"
|
||||
$param="wrap-selection"
|
||||
prefix="`"
|
||||
suffix="`"
|
||||
/>
|
||||
15
plugins/tiddlywiki/markdown/EditorToolbar/quote.tid
Executable file
15
plugins/tiddlywiki/markdown/EditorToolbar/quote.tid
Executable file
@@ -0,0 +1,15 @@
|
||||
title: $:/plugins/tiddlywiki/markdown/EditorToolbar/quote
|
||||
list-after: $:/core/ui/EditorToolbar/quote
|
||||
tags: $:/tags/EditorToolbar
|
||||
icon: $:/core/images/quote
|
||||
caption: {{$:/language/Buttons/Quote/Caption}} (Markdown)
|
||||
description: {{$:/language/Buttons/Quote/Hint}}
|
||||
condition: [<targetTiddler>type[text/x-markdown]]
|
||||
shortcuts: ((quote))
|
||||
|
||||
<$action-sendmessage
|
||||
$message="tm-edit-text-operation"
|
||||
$param="prefix-lines"
|
||||
character=">"
|
||||
count="1"
|
||||
/>
|
||||
@@ -1,3 +1,4 @@
|
||||
title: $:/language/Docs/Types/text/x-markdown
|
||||
description: Markdown
|
||||
name: text/x-markdown
|
||||
group: Text
|
||||
|
||||
10
plugins/tiddlywiki/markdown/images/new-markdown-button.tid
Executable file
10
plugins/tiddlywiki/markdown/images/new-markdown-button.tid
Executable file
@@ -0,0 +1,10 @@
|
||||
title: $:/plugins/tiddlywiki/markdown/images/new-markdown-button
|
||||
tags: $:/tags/Image
|
||||
|
||||
<svg class="tc-image-new-markdown-button tc-image-button" viewBox="0 0 128 128" width="22pt" height="22pt">
|
||||
<g fill-rule="evenodd">
|
||||
<rect x="80" y="96" width="48" height="16" rx="8"></rect>
|
||||
<rect x="96" y="80" width="16" height="48" rx="8"></rect>
|
||||
<path d="M3.23876972,39.5396716 C3.23876972,35.9653274 6.13586353,33.0691646 9.7141757,33.0691646 L98.1283744,33.0691646 C101.706101,33.0691646 104.60378,35.9646626 104.60378,39.5396716 L104.60378,84.8296213 C104.60378,88.4039654 101.706687,91.3001282 98.1283744,91.3001282 L9.7141757,91.3001282 C6.13644944,91.3001282 3.23876972,88.4046302 3.23876972,84.8296213 L3.23876972,39.5396716 L3.23876972,39.5396716 Z M-2.15298617,39.5396716 L-2.15298617,84.8296213 C-2.15298617,91.3833243 3.15957363,96.6918841 9.7141757,96.6918841 L98.1283744,96.6918841 C104.684083,96.6918841 109.995536,91.382138 109.995536,84.8296213 L109.995536,39.5396716 C109.995536,32.9859686 104.682977,27.6774087 98.1283744,27.6774087 L9.7141757,27.6774087 C3.15846686,27.6774087 -2.15298617,32.9871549 -2.15298617,39.5396716 Z M14.0222815,80.5166164 L14.0222815,43.8526764 L24.8057933,43.8526764 L35.589305,57.3320661 L46.3728168,43.8526764 L57.1563286,43.8526764 L57.1563286,80.5166164 L46.3728168,80.5166164 L46.3728168,59.4887685 L35.589305,72.9681582 L24.8057933,59.4887685 L24.8057933,80.5166164 L14.0222815,80.5166164 Z M81.4192301,80.5166164 L65.2439624,62.723822 L76.0274742,62.723822 L76.0274742,43.8526764 L86.810986,43.8526764 L86.810986,62.723822 L97.5944978,62.723822 L81.4192301,80.5166164 Z"transform="translate(53.921275, 62.184646) rotate(-60.000000) translate(-53.921275, -62.184646) "></path>
|
||||
</g>
|
||||
</svg>
|
||||
15
plugins/tiddlywiki/markdown/new-markdown.tid
Executable file
15
plugins/tiddlywiki/markdown/new-markdown.tid
Executable file
@@ -0,0 +1,15 @@
|
||||
title: $:/plugins/tiddlywiki/markdown/new-markdown-button
|
||||
tags: $:/tags/PageControls
|
||||
caption: {{$:/plugins/tiddlywiki/markdown/images/new-markdown-button}} {{$:/language/Buttons/NewMarkdown/Caption}}
|
||||
description: {{$:/language/Buttons/NewMarkdown/Hint}}
|
||||
list-after: $:/core/ui/Buttons/new-tiddler
|
||||
|
||||
<$button tooltip={{$:/language/Buttons/NewMarkdown/Hint}} aria-label={{$:/language/Buttons/NewMarkdown/Caption}} class=<<tv-config-toolbar-class>>>
|
||||
<$action-sendmessage $message="tm-new-tiddler" type="text/x-markdown"/>
|
||||
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/plugins/tiddlywiki/markdown/images/new-markdown-button}}
|
||||
</$list>
|
||||
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||
<span class="tc-btn-text"><$text text={{$:/language/Buttons/NewMarkdown/Caption}}/></span>
|
||||
</$list>
|
||||
</$button>
|
||||
Reference in New Issue
Block a user