mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-27 05:34:49 +00:00
Major updates to text-slicer plugin
* In the interests of performance and expressiveness, switched to using a Sax parser instead of a DOM implementation. * Use extensible declarative rules to control the slicing process * Added new optional set of rules for slicing by heading, where the paragraphs underneath a heading are packed into the same tiddler as the heading * Added a modal dialogue for specifying parameters when slicing in the browser
This commit is contained in:
@@ -22,12 +22,12 @@ $:/state/plugins/tiddlywiki/text-slicer/heading-status/$(currentTiddler)$
|
||||
<div class="tc-sliced-document">
|
||||
<div class="tc-sliced-document-header">
|
||||
<div class="tc-document-tiddler-toolbar">
|
||||
<$reveal type="nomatch" state=<<config-document-status>> text="close" default="open">
|
||||
<$reveal type="nomatch" state=<<config-document-status>> text="close" default="open" tag="div">
|
||||
<$button set=<<config-document-status>> setTo="close" class="tc-btn-invisible">
|
||||
{{$:/core/images/down-arrow}}
|
||||
</$button>
|
||||
</$reveal>
|
||||
<$reveal type="match" state=<<config-document-status>> text="close" default="open">
|
||||
<$reveal type="match" state=<<config-document-status>> text="close" default="open" tag="div">
|
||||
<$button set=<<config-document-status>> setTo="open" class="tc-btn-invisible">
|
||||
{{$:/core/images/right-arrow}}
|
||||
</$button>
|
||||
@@ -35,7 +35,7 @@ $:/state/plugins/tiddlywiki/text-slicer/heading-status/$(currentTiddler)$
|
||||
</div>
|
||||
<h1 class="tc-sliced-document-title">''Document'': <$link><$view field="title"/></$link></h1>
|
||||
</div>
|
||||
<$reveal type="nomatch" state=<<config-document-status>> text="close" default="open">
|
||||
<$reveal type="nomatch" state=<<config-document-status>> text="close" default="open" tag="div">
|
||||
{{||$:/plugins/tiddlywiki/text-slicer/ui/document/header}}
|
||||
<div class='tc-sliced-document-body'>
|
||||
<$set name="tv-show-toolbar" value={{$(config-show-toolbar)$}}>
|
||||
|
||||
Reference in New Issue
Block a user