Steps to reproduce
Make a Mermaid diagram:
graph LR;
TheFirstBox-->TheSecondBox;
Switch to preview mode.
Expected result
Boxes large enough to contain their text, with uniform margins all around.
Actual result
Boxes have uniform margins on top, bottom, and left side, but on the right side it’s like the box is “cut off” and the text spills out beyond the box. Like the right margin is negative, maybe?
Environment
- Operating system: Windows 10
Additional information
Here’s how it looks in Obsidian:

For comparison, here’s how VS Code renders the same diagram:
