1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 05:19:57 +00:00

Fix missing tiddler with code body isn't displayed properly. (#8604)

This commit is contained in:
Leilei332 2024-09-16 17:39:50 +08:00 committed by GitHub
parent 0f4d6e4e47
commit 19990802fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,8 @@
title: $:/core/ui/ViewTemplate/body/code
<%if [<currentTiddler>is[missing]] %>
<$transclude tiddler="$:/language/MissingTiddler/Hint"/>
<%else%>
<$transclude $variable="copy-to-clipboard-above-right" src={{{ [<currentTiddler>get[text]] }}} />
<$codeblock code={{{ [<currentTiddler>get[text]] }}} language={{{ [<currentTiddler>get[type]else[text/vnd.tiddlywiki]] }}}/>
<%endif%>