Internal links in Mermeid (bugs)

List of bugs for Obsidian 0.9.21 update

  1. Error when standard line break is present (outside of [] brackets)
  2. Error when standard line break is present (inside [] brackets)
  3. Additional formatting is ignored when adding class “internal-link”
  4. Text is now overlapping and not fitting the cell (even when custom CSS is off)

1. Error when standard line break is present (outside of [] brackets)

This one is giving error

	graph LR
    A[Note Name]<br>Subtitle--> B 
    class A internal-link;

Error parsing Mermaid diagram!

Parse error on line 2:
... LR    A[Note Name]<br>Subtitle--> B  
----------------------^

2. Error when standard line break is present (inside [] brackets)

This mess-up diagram:

Result:
Screenshot 2020-12-08 at 15.30.37

Expect:
Screenshot 2020-12-08 at 15.31.29

Used syntax:

	graph LR
    A[Note Name<br>Subtitle]--> B 
    class A internal-link;

3. Additional formatting is ignored when adding class “internal-link”

graph LR
A[Note Name]--> B 
class A fill:#ed6,internal-link;

Result (the cell A is not yellow)

Screenshot 2020-12-08 at 15.28.36

4. Text is now overlapping and not fitting the cell

1-2 ) We do not support that syntax for internal links in mermaid.
You can open a feature request for adding support
for alternative text. Something like:
A[Note Name|Alt Text]--> B

3 ) Additional formatting works. You are not using the right syntax according to the mermaid docs.

4 ) Follow up here and the source and screenshot of your diagram: https://forum.obsidian.md/t/mermaid-scaling-text-cufoff-or-overflowing/4594