1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-24 22:33:16 +00:00

Avoid wikifying system tiddlers

Fixes #2814
This commit is contained in:
Jermolene 2017-03-27 10:00:31 +01:00
parent af45d509eb
commit 303f255fcd

View File

@ -1,16 +1,24 @@
title: $:/core/ui/ViewTemplate/body
tags: $:/tags/ViewTemplate
\define re() ^\$\:\/([^/])*$
<$reveal tag="div" class="tc-tiddler-body" type="nomatch" state=<<folded-state>> text="hide" retain="yes" animate="yes">
<$list filter="[all[current]!has[plugin-type]!field:hide-body[yes]]">
<$list filter="[all[current]is[missing]!is[shadow]]" template="$:/language/MissingTiddler/Hint" emptyMessage="""
<$transclude>
<$list filter="[all[current]!is[system]] [all[current]tag[$:/tags/Image]] [all[current]regexp<re>] +[!has[plugin-type]!field:hide-body[yes]]">
<$transclude tiddler="$:/language/MissingTiddler/Hint"/>
</$transclude>
<$transclude/>
</$list>
<$list filter="[all[current]is[system]] -[all[current]tag[$:/tags/Image]] -[all[current]regexp<re>] +[!has[plugin-type]!field:hide-body[yes]]">
<$codeblock code={{!!text}} language={{!!type}}/>
</$list>
"""/>
</$reveal>