Pasted markdown is not formatted
Describe the bug
Misc Chromium 131.0.6778.139 Linux
@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:
- Automatically convert from markdown and see if this causes issues
- Make this an editor setting, so developers can enable / disable this at will
- 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
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.
@YousefED I'd go for the first option you suggest.
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
wip, see: https://github.com/TypeCellOS/BlockNote/pull/1490
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.
closed by https://github.com/TypeCellOS/BlockNote/pull/1490
@rvveber I'll create a separate issue for your suggestion