-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use yaml syntax #808
Comments
I assume the above syntax would allow this library to grow to handle significantly more complex use cases. It should also provide a more structured use of the underlying libraries that are providing the layout and view capabilities. tbh, I haven't looked at the codebase though, so I might be completely incorrect. :) |
I would love it |
here's another repo that could provide some guidance for implementation: |
Doesn't this counter the whole point of writing diagrams in a Markdown-like way? There are many tools out there to help you write diagrams. What sets this one apart, IMHO, is exactly the input format. It's really nice to have Markdown environments in which adding diagrams is simple. Or are you suggesting something different? |
I think what sets this tool apart is its inclusion in markdown rendering.
They could be drawn using the current implementation (DSL) or drawn using a generic implementation (this issue). This issue would provide development to address the above examples in a generic manner and also address the following issues(not a complete list): |
I wonder if your goals wouldn't be better met by trying to get some DOT language interpreter embedded in Markdown implementations. That has a less verbose syntax than your proposal (more verbose than Mermaid, of course), but covers a lot more uses of graphs than Mermaid attempts. Although embedding in Markdown is one of the reasons to use Mermaid, for me it's the ability to write diagrams logically without any nasty fiddling with alignment, box size, or any of the many other details required to use a visual editing program on these. I've been using such tools when I can since I first saw Alex Moffat's text-diagram -> PNG tool, Sequence, more than 15 years ago, and I still really appreciate them. They have the same rationale for me that Markdown itself does: it's an extremely readable publishing format that can easily be transformed into any number of other formats if desired. |
I agree that a standardized graph format would be better than the initial recommendation |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The goal of this issue is to implement a data driven approach to the graph.
This approach will allow a structured syntax to handle layouts, layout properties, shapes, shape properties, lines and line properties. Here's an example:
The text was updated successfully, but these errors were encountered: