Skip to content

Harmonize/extend diagrams with links #402

@kirchsth

Description

@kirchsth

Sometimes the PlantUML images cannot be display based on different (online) problems and only a broken image is displayed like below

Image

and the image cannot be opened in the PlantUML server too based on missing links.

Therefore all image links should be harmonized with following regex-replacements that
a) all images are extended with a PlantUML server link
b) all are displayed as svg
c) alternative/broken image link text is extended with "- open link"
d) tooltip is updated with alternative image text

search: (?<!\[)!\[(?'title'.*)\]\((?'url'https:\/\/www\.plantuml\.com\/plantuml)\/(png|svg)\/(?'base64'[^) ]+)( \"[^\"]*\")?\)
replace: [![${title} - open link](${url}/svg/${base64} "${title}")](${url}/uml/${base64})

after the changes a not working image looks like below and the link opens the image source in in the PlantUML server

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions