Skip to content
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

Markdown support within Graphs #1580

Open
NilsHempel opened this issue Jul 27, 2020 · 0 comments
Open

Markdown support within Graphs #1580

NilsHempel opened this issue Jul 27, 2020 · 0 comments

Comments

@NilsHempel
Copy link

@NilsHempel NilsHempel commented Jul 27, 2020

Feature Request

I would like to use Markdown within Graphs in Mermaid. This would allow for better concept maps, as more information could be included in the nodes, such as:

  • styled Text
  • Tables
  • Lists
  • Images

Solution

Recognize a prefix when rendering the diagram like so:

graph LR
MD " 

|Cell 1|Cell 2|
|---|---|
|||

## Heading

1. ol
2. ol

- ul
- ul


![image](url)"

This is how Diagram.codes has implemented it:

Alternatives

Class Diagrams formating with linebreaks
basic support for ul basic support for longer text
no other formatting no other formatting

Additional context

My usage in MarginNote:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant