opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.67k stars 873 forks source link

Add support for mermaid diagram inside a markdown based dashboard #4159

Open YANG-DB opened 1 year ago

YANG-DB commented 1 year ago

Is your feature request related to a problem? Please describe.

I need to import my GitHub markdown pages as visualizations inside my dashboard - these markdown include mermaid diagrams

Describe the solution you'd like

As a dashboard user building markdown based visualization, I'd like to be able to include the mermaid diagram extension in a similar way this is supported in GitHub.

Describe alternatives you've considered

None

Additional context

joshuarrrr commented 1 year ago

That's a cool idea, and we'd be interested in accepting such a feature PR.

AMoo-Miki commented 1 year ago

I think we should take this one step further: the markdown rendering should allow for using plugins explicitly installed and allowed by the user (with a customary XSS possibility warning).

joshuali925 commented 1 year ago

this might be possible with the OUI markdown renderer by adding https://github.com/temando/remark-mermaid as a plugin