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

Looks the code copied could lost the \n #172

Open
MonolithFoundation opened this issue May 3, 2024 · 2 comments
Open

Looks the code copied could lost the \n #172

MonolithFoundation opened this issue May 3, 2024 · 2 comments

Comments

@MonolithFoundation
Copy link

Select part of the code block to copy (not all of them), the code's \n would be lost.

Any suggestions about it?

image

this would be text copied:

  // Markdown文本  String markdownText = '''  # Hello Markdown  ## Subtitle  - List item 1  - List item 2  ''';  // 解析Markdown文本  var document = md.Document();

The \n all gone.

BTW, does there anyway to customized the inline code style?

@asjqkkkk
Copy link
Owner

asjqkkkk commented May 4, 2024

The issue regarding "copying" persists due to the current use of SelectionArea, which leads to problems with line breaks. It may be necessary to wait for any corresponding solutions from the official source in the future.

As for custom copying, you can refer to using PreConfig with CodeWrapper.

@MonolithFoundation
Copy link
Author

MonolithFoundation commented May 4, 2024 via email

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

No branches or pull requests

2 participants