Hi Michael

I'm afraid that as you've found the TOC macro doesn't work well with
tiddlers with square brackets in their titles. There isn't a workaround at
the moment. With some work I think we could fix it so that it does work,
though. I've created a ticket here:

https://github.com/Jermolene/TiddlyWiki5/issues/1200

Best wishes

Jeremy

On Fri, Dec 5, 2014 at 5:50 PM, Michael Wiktowy <[email protected]> wrote:

> Hello,
>
> I am not sure if square brackets are supposed to be allowed in tiddler
> titles but I noticed that the automatic TOC builders do not like them much.
> It tries to interpret the titles as filters in some way. This isn't an
> issue with round or squiggly brackets but I can imagine that the same issue
> that is interpreting this case might have problems with other special
> character combinations. Double square brackets have a similar issue but
> seem to give a different manifestation with the TOC is sorted than single
> square brackets.
>
> The following is a json export of a self contained group of Tiddlers
> showing this problem. (I couldn't attach as a file for some reason but
> cutting and pasting into a text file and importing that into any TiddlyWiki
> should work fine):
>
> [
>     {
>         "created": "20141205171240135",
>         "text": "Some text in Tiddler [with square brackets]",
>         "tags": "[[bug report]] [[Tiddler with TOC containing Tiddler with
> square brackets in title]]",
>         "title": "Tiddler [with square brackets]",
>         "modified": "20141205171954093"
>     },
>     {
>         "created": "20141205171518406",
>         "text": "Some text in Tiddler (with round brackets)",
>         "tags": "[[bug report]] [[Tiddler with TOC containing Tiddler with
> square brackets in title]]",
>         "title": "Tiddler (with round brackets)",
>         "modified": "20141205172005060"
>     },
>     {
>         "created": "20141205171703109",
>         "text": "Some text in Tiddler {with squiggly brackets}",
>         "tags": "[[Tiddler with TOC containing Tiddler with square
> brackets in title]] [[bug report]]",
>         "title": "Tiddler {with squiggly brackets}",
>         "modified": "20141205172022775"
>     },
>     {
>         "created": "20141205171000230",
>         "text": "Simple TOC:\n<div class=\"tc-table-of-contents\">\n<<toc
> \"Tiddler with TOC containing Tiddler with square brackets in
> title\">>\n</div>\n\nExpandable TOC:\n<div
> class=\"tc-table-of-contents\">\n<<toc-expandable \"Tiddler with TOC
> containing Tiddler with square brackets in title\">>\n</div>\n\nSelective
> Expandable TOC:\n<div
> class=\"tc-table-of-contents\">\n<<toc-selective-expandable \"Tiddler with
> TOC containing Tiddler with square brackets in title\">>\n</div>\n\nSorted
> Expandable TOC:\n<div class=\"tc-table-of-contents\">\n<<toc-expandable
> \"Tiddler with TOC containing Tiddler with square brackets in title\"
> \"sort[title]\">>\n</div>",
>         "title": "Tiddler with TOC containing Tiddler with square brackets
> in title",
>         "tags": "[[bug report]]",
>         "modified": "20141205173324901"
>     },
>     {
>         "created": "20141205174257528",
>         "text": "Text in Tiddler with {{double squiggly brackets}}",
>         "tags": "[[Tiddler with TOC containing Tiddler with square
> brackets in title]] [[bug report]]",
>         "title": "Tiddler with {{double squiggly brackets}}",
>         "modified": "20141205174353746"
>     },
>     {
>         "created": "20141205174410946",
>         "text": "Text in Tiddler with [[double square brackets]]",
>         "tags": "[[Tiddler with TOC containing Tiddler with square
> brackets in title]] [[bug report]]",
>         "title": "Tiddler with [[double square brackets]]",
>         "modified": "20141205174557791"
>     }
> ]
>
>
> I have worked around this just by using round brackets in place of square
> ones. However, is there an official accepted way to "escape" these special
> characters to avoid interpretation yet avoid tiddler naming/linking
> nightmares?
>
> Thanks,
> /Mike
>
> --
> 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 post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to