Skip to content

Commit

Permalink
Fix missing tiddler with code body isn't displayed properly. (#8604)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leilei332 authored Sep 16, 2024
1 parent 0f4d6e4 commit 1999080
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/ui/ViewTemplate/body/code.tid
Original file line number Diff line number Diff line change
@@ -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%>

0 comments on commit 1999080

Please sign in to comment.