Diagrams are not displayed when exporting to PDF or ODT using the Collection extension. Is this supposed to work?
Topic on Extension talk:Diagrams
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)
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.
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.
sorry, I mean as a wrapper element.