Can I use mermaid.js?
#8303
-
I want to use mermaid diagram in description of openapi.yaml https://mermaid-js.github.io/mermaid/#/./n00b-gettingStarted |
Beta Was this translation helpful? Give feedback.
Answered by
char0n
Nov 24, 2022
Replies: 1 comment 1 reply
-
@mcauto unfortunately you cannot. SwaggerUI uses https://www.npmjs.com/package/remarkable which only supports CommonMark as mandated by OpenAPI specification. SwaggerUI is plugginable system thought, thus it should be possible to create plugin that overrides how MarkDown is rendered. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mcauto
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@mcauto unfortunately you cannot. SwaggerUI uses https://www.npmjs.com/package/remarkable which only supports CommonMark as mandated by OpenAPI specification.
SwaggerUI is plugginable system thought, thus it should be possible to create plugin that overrides how MarkDown is rendered.