Topic on Extension talk:Diagrams

Diagrams with Collection Extension

5
151.19.17.69 (talkcontribs)

Diagrams are not displayed when exporting to PDF or ODT using the Collection extension. Is this supposed to work?

Alex Mashin (talkcontribs)

Don't think so. Diagrams are displayed client-side with JavaScript; and you can export to PDF only what is rendered server-side. This is the gotcha with fancy easy-to-develop extensions that make external JavaScript libraties available in MediaWiki.
Alexander Mashin talk 02:40, 19 March 2024 (UTC)

Samwilson (talkcontribs)

That's true for Mermaid or other client-side rendered diagrams, but we should be able to make it possible to include server-side rendered diagrams in other output such as PDF. I've not looked into why it's not already working.

93.47.164.68 (talkcontribs)

I am referring specifically to diagrams produced with PlantUML that are rendered on the server and saved in the images/diagrams folder in PNG format. I am not familiar with the internals, but I notice that in the HTML, the <img> tag is used, whereas for classic MediaWiki images, the <figure> tag is utilized.

93.47.164.68 (talkcontribs)

sorry, I mean as a wrapper element.

Reply to "Diagrams with Collection Extension"