BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

Pasted markdown is not formatted

Open rvveber opened this issue 11 months ago • 4 comments

Describe the bug Image

Misc Chromium 131.0.6778.139 Linux

rvveber avatar Jan 29 '25 10:01 rvveber

@rvveber at this moment this is intentional, but we've seen the request before. I feel if we'd automatically convert text from markdown - other users will run into the issue that they expect plain text.

We could take a few different approaches:

  1. Automatically convert from markdown and see if this causes issues
  2. Make this an editor setting, so developers can enable / disable this at will
  3. Actually offload paste behavior to the user "paste plain", "paste rich text", etc. (similar to gdocs / notion). Seems a bit overkill at this point I think though

I'm adding this to our issue tracker (@virgile-dev can prioritize), and will keep an eye out for similar request from the community

YousefED avatar Feb 25 '25 12:02 YousefED

We have a lot of users coming from Hedgedoc (using markdown) so I get asked about this frequently. We even had to implement this M button in our toolbar.

Image

@YousefED I'd go for the first option you suggest.

virgile-dev avatar Mar 10 '25 17:03 virgile-dev

I'm bringing up this issue because, in terms of UX, the M is poorly (if not completely) understood by users in Docs, and user-wise it would be helpful to have a copy/paste feature without worrying about the format.

Where do we stand on prioritizing this issue? Would it be complicated to address? @virgile-dev @YousefED

rl-83 avatar Mar 25 '25 07:03 rl-83

wip, see: https://github.com/TypeCellOS/BlockNote/pull/1490

YousefED avatar Mar 25 '25 08:03 YousefED

For pasting something un-formatted the shortcut is usually: ctrl + shift + v or cmd + shift + v [source]

Would be nice to have that working. If users complain about automatically converting to markdown educate them with the proper universal shortcut.

rvveber avatar Apr 16 '25 13:04 rvveber

closed by https://github.com/TypeCellOS/BlockNote/pull/1490

@rvveber I'll create a separate issue for your suggestion

YousefED avatar Apr 23 '25 13:04 YousefED