simov / markdown-viewer

Markdown Viewer / Browser Extension
MIT License
1.07k stars 135 forks source link

Unsuccessful Mermaid #199

Closed PaltryProgrammer closed 1 year ago

PaltryProgrammer commented 1 year ago

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 1 year ago

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.