Use match operator instead of prefix

Fixes #4407
This commit is contained in:
Jeremy Ruston
2020-01-05 13:54:06 +00:00
parent f59d044a8c
commit 6732b3c0d9
10 changed files with 38 additions and 38 deletions

View File

@@ -2,43 +2,43 @@ title: $:/plugins/tiddlywiki/text-slicer/templates/plain/tiddler
<$vars toc-type={{!!toc-type}}>
<$list filter="[<toc-type>prefix[document]]" variable="item">
<$list filter="[<toc-type>match[document]]" variable="item">
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/plain/document" mode="block"/>
</$list>
<$list filter="[<toc-type>prefix[heading]]" variable="item">
<$list filter="[<toc-type>match[heading]]" variable="item">
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/plain/heading" mode="block"/>
</$list>
<$list filter="[<toc-type>prefix[paragraph]]" variable="item">
<$list filter="[<toc-type>match[paragraph]]" variable="item">
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/plain/paragraph" mode="block"/>
</$list>
<$list filter="[<toc-type>prefix[note]]" variable="item">
<$list filter="[<toc-type>match[note]]" variable="item">
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/plain/note" mode="block"/>
</$list>
<$list filter="[<toc-type>prefix[list]]" variable="item">
<$list filter="[<toc-type>match[list]]" variable="item">
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/plain/list" mode="block"/>
</$list>
<$list filter="[<toc-type>prefix[item]]" variable="item">
<$list filter="[<toc-type>match[item]]" variable="item">
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/plain/item" mode="block"/>
</$list>
<$list filter="[<toc-type>prefix[image]]" variable="item">
<$list filter="[<toc-type>match[image]]" variable="item">
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/plain/image" mode="block"/>
</$list>
<$list filter="[<toc-type>prefix[def-list]]" variable="item">
<$list filter="[<toc-type>match[def-list]]" variable="item">
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/plain/def-list" mode="block"/>
</$list>
<$list filter="[<toc-type>prefix[term]]" variable="item">
<$list filter="[<toc-type>match[term]]" variable="item">
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/plain/term" mode="block"/>
</$list>
<$list filter="[<toc-type>prefix[definition]]" variable="item">
<$list filter="[<toc-type>match[definition]]" variable="item">
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/plain/definition" mode="block"/>
</$list>