[pmwiki-users] Mermaid recipe and tilde

Petko Yotov 5ko at 5ko.fr
Wed Mar 12 10:02:57 PDT 2025


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