Iâm afraid there may be some language barriers here.
When you say ânotesâ, do you mean âtiddlersâ? Or is this some subset of the tiddlers, perhaps those tagged âNoteâ
When you say âheadingsâ do you mean the âtitleâ field? Or are you talking about the (possibly generated) H1, H2, ⌠H7 tags, which might come from wikitext such as !! Heading Level Two
, or !!!! Heading Level Four
?
Finally, I know that breaking Chinese text into words is more complex than in English or other Latin alphabet languages. So I would expect that splitting on spaces is not enough, but itâs the only technique I know. So would this be acceptable?:
const text = "ä˝ čŻ´ĺ°čżćŻä¸ä¸ŞćľčŻ"
text.split('')
//=> ["ä˝ ", "说", "ĺ°", "čż", "ćŻ", "ä¸", "个", "ćľ", "čŻ"] // giving nine "words"
If so, that can be done with the split operator
, using various kinds of input:
[{!!title}split[]]
// or
[<my-text>split[]]
// or
[[ä˝ čŻ´ĺ°čżćŻä¸ä¸ŞćľčŻ]split[]]