mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-26 10:00:34 +00:00
106fe2dfb9
* Provide examples for the wikify widget * fix a typo in the wikify widget doc tiddler * Update and rename TestCases_WikifyWidget_WidgetInput_Fail.tid to TestCases_WikifyWidget_WidgetValue_Fail.tid * Update and rename TestCases_WikifyWidget_WidgetInput_Success.tid to TestCases_WikifyWidget_WidgetValue_Success.tid * Update WikifyWidget.tid * Update TestCases_WikifyWidget_WidgetValue_Fail.tid * Update TestCases_WikifyWidget_WidgetValue_Success.tid * Update WikifyWidget.tid * Update TestCases_WikifyWidget_WidgetValue_Success.tid fix small error causing validation to fail * Update TestCases_WikifyWidget_WidgetValue_Success.tid * remove trailing end line * remove trailing new line * add description, remove modified field
19 lines
591 B
Plaintext
19 lines
591 B
Plaintext
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 won’t 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> |