Export to html with filter

I get some strange errors to export html with a filter. Step to reproduce my error

The filter is working to list all tiddler, but get an error in the exported html

Filter error: Missing closing bracket in filter expression

It seems the error is related with vertical bar in search.

For two vertical bars,

[tag[Features]] :filter[search:tags:regexp[(Concepts|Working with TiddlyWiki|one more)]]

the content is

{{{ [tag[Features]] :filter[search:tags:regexp[(Concepts|Working with TiddlyWiki|one more)]] ||$:/core/templates/static-tiddler}}}

There is no error when there is no vertical bar.

[tag[Features]] :filter[search:tags:regexp[(Concepts)]]

It sounds there is a bug in export html.

Yes, | breaks it, move (Concepts|Working with TiddlyWiki|one more) t5o a variable

\define string() (Concepts|Working with TiddlyWiki|one more)

then use

[tag[Features]] :filter[search:tags:regexp<string>]

This is common for regular expressions but also for a simple [|]

1 Like

Thanks for quick reply. But vertical bar in working on others places (i.e. UI and filter).

  • All I know is I need to move it into a variable for a set of macros I made, and so I made;
\define pipe() |

then in filters split<pipe>
  • Or it will NOT work
1 Like