simov/markdown-viewer

Unsuccessful Mermaid

PaltryProgrammer opened this issue · 1 comments

Greetings i visited mermaid example page link below provided at github site link below , pasted mermaid address into "Allowed Origins" clicked "ADD" . Result is shown in GIF . Kindly Advise . Thank You

https://github.com/simov/markdown-syntax
https://github.com/simov/markdown-syntax/blob/main/mermaid.md
Mermaid

simov commented

This is an HTML page served on a URL that ends with .md as if it was a markdown document, but it is not. github.com does not serve markdown files, it serves HTML files instead. You have to click on the raw button for that file which will take you to https://raw.githubusercontent.com/simov/markdown-syntax/main/mermaid.md instead. This is the origin that you have to enable, and the one that Markdown Viewer can operate on, because it serves the markdown document. You can read more about it in the examples section.