1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-20 19:29:43 +00:00
TiddlyWiki5/editions/test/tiddlers/tests/data/transclude/CustomWidget-TextWidgetOverride.tid

27 lines
674 B
Plaintext
Raw Normal View History

title: Transclude/CustomWidget/TextWidgetOverride
2022-04-24 20:24:38 +00:00
description: Custom widget definition redefining the text widget
type: text/vnd.tiddlywiki-multiple
tags: [[$:/tags/wiki-test-spec]]
title: Output
\whitespace trim
<$transclude $tiddler='TiddlerOne'>
</$transclude>
+
2022-04-24 20:24:38 +00:00
title: TiddlerOne
\whitespace trim
2022-10-09 12:54:08 +00:00
<!-- Redefining the text widget only works when it is explicitly invoked with the <$text> syntax, and not implicitly via typed text -->
\widget $text(text:'Jaguar')
\whitespace trim
2022-10-09 12:54:08 +00:00
<$genesis $type="$text" $remappable="no" text={{{ [<text>addprefix[≤]addsuffix[≥]] }}}/>
\end
2022-10-09 12:54:08 +00:00
<$text text="Dingo"/>
Crocodile
+
2022-04-24 20:24:38 +00:00
title: ExpectedResult
2022-10-09 12:54:08 +00:00
<p>≤Dingo≥≤Jaguar≥</p>