One other feature I've been wanting to do for awhile is add a <rules
ruleset>Text</rules> markup which could limit markups within the tags
to certain rules, or even completely different markup rules.
I envision for example, one could do, all on the same page:
<rules creole>
some wiki creole markup
</rules>
<rules pmwiki>
some pmwiki markup
</rules>
<rules vars:member,if,style>
Some text with only limited markup rules processed.
</rules>
It is not particularly hard to code, though setting up entire alt
markup tables is not for the faint of heart. There will probably be a
few glitches along the way, but I think it will be a cool feature to
have.
The third example above is generated automatically from the core
markup table. To set up a completely new creole markup table you can
define rules like this:
MarkUp('style', 'italics', '/pat/', 'output', 'creole');
MarkUp('links', 'links', '/pat/e', 'BOLTMlinks("$1")', 'creole');
Notice the optional 5th paramater adds them to a "creole" markup
table. To use this new table you just use the rules markup with the
creole label. This makes it quite easy to setup a plugin which has
only a very limited set of markups or an alternate set, such as for
comments. There's also various hooks you can tap into to dynamically
modify the rules on the fly if you wish. Even while the page is
loading--which should give pretty radical possibilities. Doubt anyone
would ever use it though! :)
Well, it's all working now. I'll look into getting out a new release
here shortly.
Cheers,
Dan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---