1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-27 02:20:28 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/TestCases_WikifyWidget_WordCount_Fail.tid

19 lines
591 B
Plaintext
Raw Normal View History

created: 20241201235746062
description: Accurate word count
tags: $:/tags/wiki-test-spec-failing
title: TestCases/WikifyWidget/WordCount/Fail
type: text/vnd.tiddlywiki-multiple
title: Narrative
If a tiddler transclude some content, or use widgets to generate content, filters that try to calculate the word count wont be accurate: they will instead count the raw text words.
+
title: Output
Word count = <$count filter="[{lorem}split[ ]!is[blank]]"/>
+
title: lorem
text: <$list filter="[range[1],[3]]"><$text text=" word "/></$list>
+
title: ExpectedResult
text: <p>Word count = 3</p>