mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-27 12:04:40 +00:00
Text-slicer: Add support for discarding the content of an element
This commit is contained in:
@@ -7,7 +7,22 @@ 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",
|
||||
"selector": "li > p",
|
||||
"actions": {
|
||||
"dontRenderTag": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"selector": "p",
|
||||
"actions": {
|
||||
"startNewChunk": {
|
||||
"toc-type": "paragraph"
|
||||
},
|
||||
"dontRenderTag": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"selector": "address,blockquote,center,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,hr,iframe,isindex,noframes,noscript,ol,pre,table,ul",
|
||||
"actions": {
|
||||
"startNewChunk": {
|
||||
"toc-type": "paragraph"
|
||||
@@ -25,19 +40,11 @@ tags: $:/tags/text-slicer/slicer-rules
|
||||
"isImage": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"selector": "head > title",
|
||||
"actions": {
|
||||
"dontRenderTag": true,
|
||||
"startNewChunk": {
|
||||
"toc-type": "title"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"selector": "*",
|
||||
"actions": {
|
||||
"dontRenderTag": true
|
||||
"dontRenderTag": true,
|
||||
"discard": true
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user