[pmwiki-users] jsMath - scalable mathematics across multiple lines
Ben Woodruff
bmwoodruff+pmwiki at gmail.com
Wed Jan 10 10:44:03 CST 2007
On 1/3/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> On Tue, Jan 02, 2007 at 10:23:47AM -0700, Ben Woodruff wrote:
> >
> > Is there a way to get the markup {$ $} and {$$ $$} to work across more
> > than one line?
>
> Yes. Try changing the Markup() rules to read:
>
> Markup('{$$', 'fulltext',
> '/\\{\\$\\$(.*?)\\$\$\\}/es',
> "Keep('<div class=\"math\">'.PSS('$1').'</div>')");
>
> Markup('{$', '>{$$',
> '/\\{\\$(.*?)\\$\\}/es',
> "Keep('<span class=\"math\">'.PSS('$1').'</span>')");
>
> This will cause the {$...$} markups to be processed before
> the text is broken into separate lines.
>
> Pm
>
>
Thanks Patrick.
Ben
More information about the pmwiki-users
mailing list