1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-19 18:34:23 +00:00
TiddlyWiki5/plugins/tiddlywiki/text-slicer/macros.tid
Jermolene 8488a13761 Introduce text-slicer plugin and edition
A first pass at a plugin that splits formatted text into individual
tiddlers according to lists and headings.
2015-08-01 13:15:24 +01:00

24 lines
434 B
Plaintext

title: $:/plugins/tiddlywiki/text-slicer/macros
tags: $:/tags/Macro
\define display-heading-tiddler(level:"h1")
<$level$><$view field="title"/></$level$>
<$list filter='[tag<currentTiddler>]'>
<$tiddler>
<$transclude mode='block'/>
</$tiddler>
</$list>
\end
\define display-list-tiddler(type:"ol")
<$type$>
<$list filter='[tag<currentTiddler>]'>
<li>
<$tiddler>
<$transclude mode='block'/>
</$tiddler>
</li>
</$list>
</$type$>
\end