TW5: Are the parser's pragma rules documented somewhere? Anywhere?

130 views
Skip to first unread message

Douglas Counts

unread,
Apr 13, 2017, 10:22:24 PM4/13/17
to TiddlyWiki
After spending several hours reading the sound docs and even playing around with Tobias' enable-js plug-in. 

I noticed that I couldn't attach events because the TW parser is spitting 
var target = document.getElementById("audio-div");

just after the get. So within the debugger, it looks like so:

var audio = document.get
ElementById("target");

Obviously, that isn't going to work.  So adding the pragma

\rules except wikilink

fixed the problem.  Which brings me to the question, where are these pragma rules documented?

I even searched for the term except at tiddlywiki.com/dev/ and came up empty. Is there a resource out there on these?

A how to article out there? Something? Anything?

Thank you guys or gals,

-Doug





Douglas Counts

unread,
Apr 13, 2017, 10:51:19 PM4/13/17
to TiddlyWiki
As a follow-up, after looking at the source code for the parser's pragma rules, I found the comment:

\rules except ruleone ruletwo rulethree
\rules only ruleone ruletwo rulethree

so, are those the only two pragma rules or are there more?

-Doug

Jan

unread,
Nov 17, 2018, 7:08:10 PM11/17/18
to tiddl...@googlegroups.com
Hi Doug,
There are!
BJ made a plugin for this. Look here or search for the google discussion on this topic.
http://flexibility.tiddlyspot.com/

Good night;.) Jan
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/694ebef8-2f0e-4331-8056-6d265f613f77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

@TiddlyTweeter

unread,
Nov 19, 2018, 7:00:20 AM11/19/18
to TiddlyWiki
Jan gave one link to BJ's work that is helpful, though that link is to a specialised regular expressions mediated content type. The other plugin of BJ that covers the \rules pragma in some detail is ... http://bjtools.tiddlyspot.com/#Flexitype%20Demos

FYI, IF what you need is to globally switch OFF certain \rules pragma they can be configured. I.e. : https://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FControlPanel%2FParsing

Best, Josiah
Reply all
Reply to author
Forward
0 new messages