Text-slicer: Add support for definition lists

This commit is contained in:
Evolena
2015-10-14 20:25:11 +02:00
parent 26d0029746
commit 0a220a09da
17 changed files with 298 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
title: $:/plugins/tiddlywiki/text-slicer/templates/plain/def-list
\define body()
<dl>
<$list filter="""[all[current]] $(tv-exclude-filter)$ +[limit[1]]""" variable="item">
<$list filter={{!!toc-list-filter}} template="$:/plugins/tiddlywiki/text-slicer/templates/plain/tiddler"/>
</$list>
</dl>
\end
<<body>>

View File

@@ -0,0 +1,11 @@
title: $:/plugins/tiddlywiki/text-slicer/templates/plain/definition
\define body()
<dd>
<$transclude/>
</dd>
\end
<<body>>

View File

@@ -0,0 +1,11 @@
title: $:/plugins/tiddlywiki/text-slicer/templates/plain/term
\define body()
<dt>
<$transclude/>
</dt>
\end
<<body>>

View File

@@ -26,4 +26,16 @@ title: $:/plugins/tiddlywiki/text-slicer/templates/plain/tiddler
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/plain/image" mode="block"/>
</$list>
<$list filter="[<toc-type>prefix[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">
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/plain/term" mode="block"/>
</$list>
<$list filter="[<toc-type>prefix[definition]]" variable="item">
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/plain/definition" mode="block"/>
</$list>
</$vars>