Mermaid-Chart / vscode-mermaid-preview

Previews Mermaid diagrams
MIT License
148 stars 16 forks source link

Support for standalone Mermaid files #42

Closed iiska closed 7 years ago

iiska commented 7 years ago

Allows previewing plain Mermaid diagram files with .mmd extension.

Standalone .mmd files could be used eg. with Mermaid CLI: https://github.com/mermaidjs/mermaid.cli#examples

vstirbu commented 7 years ago

Thanks for the PR!

Can you add tests equivalents for the sequence.md and font-awesome.md?

iiska commented 7 years ago

Yes, of course.

I have to study VSCode mocking a little first, because I would like to have test setup which has editor instance equivalent available.

vstirbu commented 7 years ago

That would be great, although for now having equivalent for the utils when diagrams are in markdown or html would do the job for this PR. The fancy part could come later ;)

vstirbu commented 7 years ago

On second thought, I do not think that there are any tests needed to bring this on par with the other cases.

If you manage to make tests inside the editor, please open another PR with that.