[pmwiki-users] Keep() not preventing further parsing?

2010-11-19 Thread Ashish Myles
Hi,

I am a newcomer to PmWiki and I totally love how easy it is to make
plugins. I created a recipe to use MathJax for math and I noticed an
issue with the plugin that also affects the jsMath plugin which I have
been using so far. I wanted to resolve this issue before posting the
recipe.

Even though the MathJax javascript plugin does all the parsing itself,
I have to make sure that none of the content between the {$ ... $} and
{$$ ... $$} delimiters gets modified. So I used the following two
lines:

Markup('{$', 'directives', '/\\{\\$(.*?)\\$\\}/e',
"Keep('{\$'.PSS('$1').'\$}')");
Markup('{$$', '<{$', '/\\{\\$\\$(.*?)\\$\$\\}/e',
"Keep('{\$\$'.PSS('$1').'\$\$}')");

However, in some cases, some curly braces get parsed. The following
line works fine and gets copied over to the HTML without further
processing
 {$$ (a){}{ } $$}
In other words, if I view the source, I see
 {$$ (a){}{ } $$}
as I am supposed to.

But if I try:
{$$ {(a)} $$}
{$$ \frac{(a)}{(b)} $$}
then the curly braces are removed in the final HTML output
{$$ (a) $$}
{$$ \frac(a)(b) $$}

Moreover, PmWiki likes to convert "{a}" to "a" with a macron above it,
which converts
{$$ \frac{a}{b} $$}
{$$ {a} $$}
{$$ ({a}) $$}
to the following HTML code
{$$ ā $$}
{$$ (ā) $$}
{$$ \fracā{b} $$}

I tried disabling all the other plugins in my configuration files and
the behavior was unchanged.  Looking around the PmWiki site, I don't
see what triggers this conversion.

Note that one doesn't actually need MathJax to test the cases above.
Just put the two Markup() lines above in your local config file and
look at the resulting HTML.

Ashish

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] pmwiki.org server migration

2010-11-19 Thread DaveG



On 11/19/2010 4:12 PM, Patrick R. Michaud wrote:

I'm also considering migrating PmWiki's subversion repository
to GitHub -- any comments?  (If you don't understand what
this means, it likely doesn't affect you.  :-)

I'd personally prefer Git, and I like GitHub, so a plus from me.


 ~ ~ Dave

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] pmwiki.org server migration

2010-11-19 Thread Patrick R. Michaud
Over the next 10 days I hope to be migrating pmwiki.org to a new
(faster + more reliable) server.  As a result you may see
periodic downtime in the server and/or the mailing lists.

If things seem to be not working properly for more than a
few hours (and there aren't any messages from me about it),
feel free to send me an email directly so I can check into
it (pmich...@pobox.com).

I'm also considering migrating PmWiki's subversion repository
to GitHub -- any comments?  (If you don't understand what
this means, it likely doesn't affect you.  :-)

Pm

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users