mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Text-slicer: Add new slicer rules for linear chunking
In this configuration there is no weaving together by hierarchical heading; the document is just a linear list of paragraphs.
This commit is contained in:
parent
50950d8143
commit
413894e3e7
43
plugins/tiddlywiki/text-slicer/modules/rules/html-linear.tid
Normal file
43
plugins/tiddlywiki/text-slicer/modules/rules/html-linear.tid
Normal file
@ -0,0 +1,43 @@
|
||||
title: $:/plugins/tiddlywiki/text-slicer/slicer-rules/html-linear.json
|
||||
name: html-linear
|
||||
caption: Linear (HTML)
|
||||
description: One tiddler per paragraph in a single linear thread (HTML)
|
||||
type: application/json
|
||||
tags: $:/tags/text-slicer/slicer-rules
|
||||
|
||||
[
|
||||
{
|
||||
"selector": "address,blockquote,center,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,hr,iframe,isindex,noframes,noscript,ol,p,pre,table,ul",
|
||||
"actions": {
|
||||
"startNewChunk": {
|
||||
"toc-type": "paragraph"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"selector": "code,em,i,dd,li,strike,strong,b,sub,sup,u",
|
||||
"actions": {
|
||||
}
|
||||
},
|
||||
{
|
||||
"selector": "img",
|
||||
"actions": {
|
||||
"isImage": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"selector": "head > title",
|
||||
"actions": {
|
||||
"dontRenderTag": true,
|
||||
"startNewChunk": {
|
||||
"toc-type": "title"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"selector": "*",
|
||||
"actions": {
|
||||
"dontRenderTag": true
|
||||
}
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user