akebifiky / remark-simple-plantuml

A simple plugin for remarkjs that converts PlantUML code written in Markdown to img tags.
MIT License
28 stars 7 forks source link

Unable to copy text inside Svg images #5

Open ManasMadrecha opened 3 years ago

ManasMadrecha commented 3 years ago

First of all, thanks for this amazing plugin. 💛

I am using Nuxt Content module to write markdown.

I want to copy the text contents of the image shown, so I changed the option of baseUrl to svg, as shown on readme file. This is showing the correct image. However, still but I am unable to copy the text contents.

On inspecting, I found the element shown is still img, and not svg. Any comments on this?

doppelganger9 commented 3 years ago

Hi, from what I understood reading the code, this plugin relies on another repository/dependency called plantuml-encoder which only creates an URL with the plantuml contents encoded in base64.

So, you will always have an img tag in your document source.

Only difference for SVG is the links points to an SVG image instead of another extension.