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

Improvement for mermaid.live: Copy-paste indented content results in incorrect indentation #1465

Open
lilian-lilifox opened this issue Jun 1, 2024 · 0 comments

Comments

@lilian-lilifox
Copy link

Description

Sometimes, we got the code written on other application, and we would copy the code and paste it in the webpage.
Then we can find that each line with indentation, get another unexpected redundant indentation than the line above, and the indentation become more and more in the flowing lines.
Same problem can be found in vim or vs code if the setting is not proper.

Steps to reproduce

When I use mermaid.live with my firefox on linux, if I paste code with indentation, it will happen.
And I had tested chrome, things didn't happened.

Screenshots

Screenshot_20240601_225432

Code Sample

No response

Setup

  • Mermaid version: 10.9.1
  • Browser and Version: Mozilla Firefox 126.0.1

Suggested Solutions

No response

Additional Context

No response

@jgreywolf jgreywolf transferred this issue from mermaid-js/mermaid Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant