On Wednesday, September 9, 2020 at 5:22:29 AM UTC-7, talha131 wrote:
>
> Say I created tiddler with the title, 
>
> Test @@%+&*[] example
>
> This is a bad idea!  In fact, TiddlyWiki shows a warning when you enter a 
title containing special characters:
 Warning: avoid using any of the characters | [ ] { } in tiddler titles

In the tiddler, body when I use {{!!title}}, every character appears except 
> the @@.  If I use @ once, or odd number of times then it works. But if I 
> use @ twice or four time, then it is not displayed. It is probably 
> because @@ has special meaning in tiddler and is used for styling.
>
That is exactly the reason for the warning.  When you use transclusion to 
show a field value, the results are automatically "wikified" (parsed)... 
and "@@" is, as you've noted, used for inline CSS styling.

Question is how to write {{!!title}} so that it displays @@ or any other 
> character combination that may have special meaning in TW.
>
To show the title, including the bad characters, without wikifying, you can 
use the <$view> widget, like this:
<$view field="title" />

or the <$text> widget, like this:
<$view text={{!!title}} />

Having said this, you really should avoid *ever* using those special 
characters in titles.  Eventually, you will find it gives you headaches, 
especially if you need to use those titles in Links, where "|" is used to 
separate the display text from the linked title, and in Filters, where "[" 
and "]" are used extensively as delimiters around literal values within the 
filter syntax.

-e


 

> ​
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2553a62e-b8c2-48e4-9763-13d6fd6d3a6ao%40googlegroups.com.

Reply via email to