[pmwiki-users] Mermaid recipe and tilde

Johan Bengtsson elijah at chalmers.se
Thu Mar 13 01:38:33 PDT 2025


Yes, that seems to work. Thank you!:-)

-Johan Bengtsson

________________________________________
Från: Petko Yotov <5ko at 5ko.fr>
Skickat: den 12 mars 2025 18:02
Till: Johan Bengtsson
Kopia: PmWiki Users
Ämne: Re: [pmwiki-users] Mermaid recipe and tilde

On 12/03/2025 16:27, Johan Bengtsson wrote:
> https://www.pmwiki.org/wiki/Cookbook/MermaidJs
>
> This creates one little problem, the code for signature in pmwiki is
> "~~~" and the same for invisible links in a Mermaid diagram.
> So instead of an invisible link the authors signature gets thrown into
> the diagram.
>
> I found a possible solution here:
> https://www.pmwiki.org/wiki/Cookbook/ROSPatterns#toc-3.3
> The if conditional in the example doesn't seem to work, but:

I fixed the conditional in that page.


> $EnableAuthorSignature = 0;
>
> works. This variable is missing from this list:
> https://www.pmwiki.org/wiki/PmWiki/Variables
>
> Could there be some other solution that turning of the signatures?

If you use the markup:

   (:mermaid:) [@...@]

To prevent ROS patterns like the signature from being processed inside
[@escaped@] [=text=], add this to config.php:

   $EnableROSEscape = 1;

Petko



More information about the pmwiki-users mailing list