Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to prepend a URL to img #551

Open
erichiller opened this issue Jun 14, 2023 · 0 comments
Open

Add an option to prepend a URL to img #551

erichiller opened this issue Jun 14, 2023 · 0 comments

Comments

@erichiller
Copy link

For Markdown output files that are hosted remotely, I've had situations where I can't use relative URLs for the img src. My request is for an extra option input for prependUrl or similar for a base URL that the img src tag in the output Markdown would point to.

I believe it should be easy enough, this line is where it would be input as far as I can tell.

https://github.com/mermaid-js/mermaid-cli/blob/master/src/index.js#L436

A post-processing regex pass is what I'm doing temporarily, but there's always chance that there is a conflict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant