-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Request: mermaid rendering support within markdown #63
Comments
Per github/markup#533 (comment), the correct destination is the support team. Rendering the diagram doesn't take place in or relate to the Markdown to HTML transformation, which is what this library does. |
@kivikakk Gotcha, thanks, I did submit it there too, was hoping this might be an appropriate public place to track the request. Is it accurate that this is where the rendering would be invoked from though and that a ruby toolchain would be ideal? Or is there a separate project somewhere for handling rendering code blocks based on indicated language? |
@themightychris excellent to hear! Rendering would not be invoked from here, no; the code block here would be transformed into |
@kivikakk ah that makes sense, thanks so much for the additional detail! |
Is the code block transformation hosted somewhere, or is it an internal pipeline not published in the open? This way we could do a pull-request to add support for that... |
It's part of GitHub.com's internal code, so it's not published. |
Oh, what a shame... :-( What about allowing to set an url as the code block language? This way the code block could do a POST request to that url with the content of the code block, and return an html snippet to be replaced in place of the code block, allowing third party code block processors like this one... |
FWIW you could also use https://github.com/jch/html-pipeline, whose We will likely never allow |
Seems only alternative will be to upload the rendered diagrams as images... :-/ |
Well, you could create a GitHub App to do that replacement for you: https://github.com/marketplace Have the App listen to comments, and it edit any comment with a code block matching whatever you're looking to replace. |
@gjtorikian a |
Yes, I suggested it as a workaround, that could be used not only for this but also for other code blocks replacements. |
FWIW while trying to find a solution I stumbled across this pre-alpha project https://github.com/neenjaw/mermaid-markdown-test |
Consider adding mermaid support within GH-rendered markdown as requested here: github/markup#533
It would ideally function just as this VS Code extension: https://github.com/mjbvz/vscode-markdown-mermaid
This would provide a maximally-githuby way to explain how systems and processes work. Currently this can only be done by running a local command to render a PNG inserted in the README after each change, which is very cumbersome, doesn't version well, and is a barrier to contributors
The text was updated successfully, but these errors were encountered: