mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-28 20:15:05 +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:
19
plugins/tiddlywiki/text-slicer/docs/docs-usage.tid
Normal file
19
plugins/tiddlywiki/text-slicer/docs/docs-usage.tid
Normal file
@@ -0,0 +1,19 @@
|
||||
title: $:/plugins/tiddlywiki/text-slicer/docs/usage
|
||||
tags: $:/plugins/tiddlywiki/text-slicer/docs
|
||||
caption: Usage
|
||||
|
||||
The tool can slice any tiddler that can be rendered as HTML, including both WikiText and HTML itself.
|
||||
|
||||
Documents created with Microsoft Word will need to be first converted to HTML. The library [[mammoth.js|https://github.com/mwilliamson/mammoth.js]] is recommended for this purpose.
|
||||
|
||||
!! Browser
|
||||
|
||||
In the browser, you can slice a monolithic document tiddler using the slicer toolbar button.
|
||||
|
||||
!! Node.js
|
||||
|
||||
The `--slice` command allows a tiddler to be sliced under Node.js:
|
||||
|
||||
```
|
||||
tiddlywiki mywiki --slice SourceDocument --build index
|
||||
```
|
||||
Reference in New Issue
Block a user