Skip to content

Mermaid diagrams don't resize in height #2335

@ChrisK91

Description

@ChrisK91

Issuehunt badges

Current behavior

When creating "tall" mermaid graphs, the graph area is not resized in height, resulting in unreadable text, both in preview and in output

Expected behavior

The graph area should be resizable, to allow creation of readable graphs. One option could be, to allow user specified dimensions for the created graph area.

Steps to reproduce

  1. create a new note
  2. Insert:
\`\`\`mermaid
graph TB
    c1-->c2
    c2-->c3
    c3-->c4
    c4-->c5
    c5-->c6
  1. Observe the resulting output:
    image

Environment

  • Version : 0.11.8
  • OS Version and name : Windows 10, display resolution 1080p

IssueHunt Summary

daiyam daiyam has been rewarded.

Backers (Total: $40.00)

Submitted pull Requests


Tips


IssueHunt has been backed by the following sponsors. Become a sponsor

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Issue concerns a bug.funded on issuehunt 💵Issue has received funding that will be rewarded to the contributor solving this issue.rewarded on issuehunt 🎁Issue has been resolved and a contributor has been rewarded.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions