mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-04 23:39:57 +00:00
29 lines
736 B
Plaintext
29 lines
736 B
Plaintext
|
title: Transclude/Parameterised/ParseTreeNodes
|
||
|
description: Parameterised transclusion using the $parseTreeNodes attribute
|
||
|
type: text/vnd.tiddlywiki-multiple
|
||
|
tags: [[$:/tags/wiki-test-spec]]
|
||
|
|
||
|
title: Output
|
||
|
|
||
|
\whitespace trim
|
||
|
|
||
|
<$transclude $tiddler='TiddlerOne' one='Ferret'>
|
||
|
|
||
|
This is a block
|
||
|
|
||
|
</$transclude>
|
||
|
|
||
|
<$transclude $tiddler='TiddlerOne'>
|
||
|
This is inline
|
||
|
</$transclude>
|
||
|
+
|
||
|
title: TiddlerOne
|
||
|
|
||
|
\whitespace trim
|
||
|
<$parameters $parseTreeNodes="@parseTreeNodes">
|
||
|
<$text text=<<@parseTreeNodes>>/>
|
||
|
</$parameters>
|
||
|
+
|
||
|
title: ExpectedResult
|
||
|
|
||
|
<p>[{"type":"element","tag":"p","children":[{"type":"text","text":"This is a block","start":68,"end":83}],"start":68,"end":83}]</p><p>[{"type":"text","text":"This is inline","start":136,"end":152}]</p>
|