preliminary thoughts
the text/vnd.tiddlywiki can be thought of as a 'bag' of rules.
Unfortunately, we cannot subtract from this bag unless we make sure all
possible sub -bags work in the intended way (but this is not the case, if
extlink is removed then the result is not what you would expect -
unfortunately I am unable to upload the result at present). However, as the
rules are applied in a sequence, a new rule with the same regex as a
previous rule will override that rule.
eg if we have "extlinkdummy" that has the same regex as "extlink" but
returns the captured text verbatim, then the "extlink" rule is
nullified.(the output is what is expected).
therefore it would seem better to 'override' rules rather than have some
method of selecting rules. A set of nullifying override rules could be
build into tw5.
A tiddly specifying this would contain a sequence of rules (using an array
in json format) that would be applied after all the rules of the 'base'
type.
A second method of varying behaviour could be to allow pre-parsing. - A
sequence of substitutes would be applied (to the whole text) before the
main rules. This would be useful when transform/remove of symbols is
required.
An example maybe that we want to convert instances of "<<tiddler x>>" to
"{{x}}"
This could be implement in addition to the above, ie have a tiddly
containing two sequences of rules.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" 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/tiddlywikidev.
For more options, visit https://groups.google.com/groups/opt_out.