-
Notifications
You must be signed in to change notification settings - Fork 23
Labels
authoringRelates to our markdown parserRelates to our markdown parser
Description
Mermaid
Kind | Link |
---|---|
Reference | https://mystmd.org/guide/directives#directive-mermaid |
Documentation | https://mystmd.org/guide/diagrams |
Implementation
- Parses directives and aliasesEmits HTMLUnit testsValidation (emits, warnings and errors).To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Specification compliance:
- Body (string, required)
- Options
label, name
(string) - Label the mermaid to be cross-referenced or explicitly linked to.
To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Metadata
Metadata
Assignees
Labels
authoringRelates to our markdown parserRelates to our markdown parser
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
theletterf commentedon Apr 10, 2025
I strongly support this proposal. I implemented Mermaid diagrams for docs-as-code in the past, and they're the solution to:
Let me know if you need any help with this.
+CC @alaudazzi @bmorelli25
Mpdreamz commentedon Apr 10, 2025
We initially had support for
mermaid
but decided to rip it out. I think we are all now in favor of including this back in.cursorful-video-1744299611397.mp4
I spent a little time today adding it back in in this branch: https://github.com/elastic/docs-builder/tree/feature/mermaid-support
_static
need to pair with @reakaleek and @cottiSince this exceeded my timebox of 30minutes we will need to look into supporting this post 9.0.
theletterf commentedon Apr 10, 2025
Re: Styling, couldn't we use the bundled styles? (Not the default one, the monochromatic ones for light and dark themes.)
Mpdreamz commentedon Apr 10, 2025
Yes no, even changing the fonts is a bit tedious (but solved on that branch)
At a minimum the colors should inherit from our theme. A day might have been an exaggeration :).