strawman extension and mime type docs

This commit is contained in:
Nicholas Bollweg 2023-06-12 09:09:29 -05:00
parent 4a200473c9
commit 64558ffa9c
1 changed files with 11 additions and 0 deletions

View File

@ -199,3 +199,14 @@ They also serve as proof of concept, for the variety of things that can be built
- [NiceGUI: Let any browser be the frontend of your Python code](https://nicegui.io)
- [ui.mermaid(...)](https://nicegui.io/reference#mermaid_diagrams)
- [ui.markdown(..., extras=['mermaid'])](https://nicegui.io/reference#markdown_element)
## Recommendations
### File Extension
Applications that support editing and saving mermaid files are encouraged to use the `.mmd` file extension.
### MIME Type
While not officially recognized by the [IANA](https://www.iana.org/assignments/media-types/media-types.xhtml),
the recommended MIME type for mermaid media is `text/vnd.mermaid`.