asjqkkkk / markdown_widget

📖Rendering markdown by flutter!Welcome for pr and issue.
MIT License
312 stars 90 forks source link

Looks the code copied could lost the \n #172

Open MonolithFoundation opened 4 months ago

MonolithFoundation commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

Hi any official notice on this issue?

from my observation clutter would never fix their issues until this become serious.

---- Replied Message ---- | From | @.> | | Date | 05/04/2024 21:21 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [asjqkkkk/markdown_widget] Looks the code copied could lost the \n (Issue #172) |

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.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>