dendron icon indicating copy to clipboard operation
dendron copied to clipboard

Copying from markdown preview works weird.

Open tolikkostin opened this issue 1 year ago • 0 comments

Please select the area your bug applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

  • [ ] Workspace. VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
  • [ ] Lookup. Dendron's Lookup Command
  • [x] Views. Dendron Preview, Tree View, Side Panels in the UI
  • [ ] Schema. Dendron Schemas
  • [ ] Pod. Data import from / export to Dendron
  • [ ] Publish. External Site Publish
  • [x] Markdown. Markdown features, such as syntax support and features

Describe the bug

Copying from markdown preview works weird. Copied content isn't formatted this way as rendered on preview.

To Reproduce

Steps to reproduce the behavior:

  1. Open preview of article with code section.
  2. Copy code and paste somewhere

Expected behavior

Copied contenet should be formatted the same way as rendered on preview with corresponding identations, new line, etc.

Screenshots

Screenshot 2023-11-07 at 15 01 54 Screenshot 2023-11-07 at 15 03 42

Desktop (please complete the following information)

  • OS: macOS 14.0 (23A344)
  • Browser (if with published websites; include version): [e.g. chrome, safari]
  • Versions (all that apply to bug):
    • Dendron Extension: v0.124.0
    • VS Code version: 1.81.0 (Universal)
    • Dendron CLI: n/a

tolikkostin avatar Nov 07 '23 14:11 tolikkostin