mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-18 07:44:51 +00:00
e344c38349
* 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
20 lines
647 B
Plaintext
20 lines
647 B
Plaintext
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
|
|
```
|