[pmwiki-users] Special monospace requirement

Petko Yotov 5ko at 5ko.fr
Sun Sep 23 17:48:22 CDT 2012


Allister Jenks writes:
> It appears that the markup is picking up everything from the following [@ to  
> the last @] on the page, instead of just the next one. The result is most of  
> the rest of my page is included in the <pre> tags.

Indeed, I overlooked this. Try this markup definition:

  Markup('terminal', '>markupend', "/\\(:5250:\\) *\\[@(.*?)@\\]/sei",
    "MarkupTerminal(\$pagename, PSS('$1'))");

That is one added ? in the part ..."@(.*?)@"...

Petko




More information about the pmwiki-users mailing list