steven-tey / novel

Notion-style WYSIWYG editor with AI-powered autocompletion.
https://novel.sh
Apache License 2.0
13.22k stars 1.08k forks source link

Copying and pasting breaks the format #280

Open fgatti675 opened 9 months ago

fgatti675 commented 9 months ago

Hi, thanks for an awesome project!

I have realised that if I copy a portion of the editor, and paste it back in the editor, it works as expected (with the correct format). If I paste it in vs code I get markdown, which is great:

## Introducing Novel

[Novel](https://github.com/steven-tey/novel) is a Notion-style WYSIWYG editor with AI-powered autocompletion. Built with [Tiptap](https://tiptap.dev/) + [Vercel AI SDK](https://sdk.vercel.ai/docs).

### Installation

npm i novel

But if I copy that code from vs code, and paste it back into novel, it gets pasted as a block code

Screenshot 2024-02-05 at 18 33 57
jonkurtis commented 8 months ago

Any markdown I attempt to paste in from any source does not format properly. It just appears as raw markdown.

noobakong commented 6 months ago

the same question, have any good idea?