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

Displaying a chart in markdown from a link in an .mmd file #4403

Closed
PackRuble opened this issue May 16, 2023 · 1 comment
Closed

Displaying a chart in markdown from a link in an .mmd file #4403

PackRuble opened this issue May 16, 2023 · 1 comment

Comments

@PackRuble
Copy link

The question is how can we display the chart in a markdown file if the chart is stored in a .mmd file.

This is the same behavior as

// file readme.md
![](res/image.png)

The picture itself is stored along the path res/image.png and thus we can see it immediately in the readme file.

The fact is that the diagrams can be too large, which causes inconvenience when editing the markdown file. Is it possible to specify only a link to the .mmd file so that the diagram appears in the view mode, and not the code itself?

I tried like this:

// file readme.md

<img src="res/chart.mmd" alt=""/>

![](res/chart.mmd)

but none of these ways render the chart from file.

@sidharthv96
Copy link
Member

This is out of scope for mermaid project.
It would require support of an external service, like mermaid.ink (which supports encoded diagrams, not links to mmd files) to generate an image from a link. The linked mmd file should also be accessible to the server, so it should be publicly accessible.

@sidharthv96 sidharthv96 closed this as not planned Won't fix, can't repro, duplicate, stale May 17, 2023
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

2 participants