I'm sorry I've not been more active in helping you debug these issues;
I've been away from a real computer.
I think the issue here is that your 'match' patterns for both the
formatters include capturing parenthesis. This is not allowed, because
the wikification matching mechanism concatenates all the match
expressions into one giant regexp, and then relies on there being a
1:1 correspondence between each formatter and a single set of
capturing parenthesis. You can see what is going on in the constructor
to the Formatter() object:
https://github.com/TiddlyWiki/tiddlywiki/blob/master/js/FormatterHelpers.js
The built-in "rawText" formatter is a good example of the way to
workaround this problem. Here, the match expression is just the
minimum pattern to trigger the formatter. Then the body resets the
match position to the beginning of the match before testing for the
lookahead regexp:
this.lookaheadRegExp.lastIndex = w.matchStart;
var lookaheadMatch = this.lookaheadRegExp.exec(w.source);
This means that the string that triggered the formatter is re-parsed
as part of the lookahead search, allowing capturing parentheses to be
used to extract the bits and pieces.
Best wishes
Jeremy
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWikiDev" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/tiddlywikidev/-/Sj2gzaNOXj8J.
>
> To post to this group, send email to tiddly...@googlegroups.com.
> To unsubscribe from this group, send email to
> tiddlywikide...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/tiddlywikidev?hl=en.
--
Jeremy Ruston
mailto:jeremy...@gmail.com
http://www.tiddlywiki.com