Skip to content

Conversation

@01zulfi
Copy link
Contributor

@01zulfi 01zulfi commented Sep 23, 2025

Closes #8597

parseMarkdownOnPaste = true
): Slice {
if (!plain && isProbablyMarkdown(text)) {
if (!plain && parseMarkdownOnPaste && isProbablyMarkdown(text)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated comment: plain is true when content is pasted via ctrl+shift+v but false if pasted view right click > paste as plain text. I haven't found any answer for this yet

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plain is set by prosemirror I think. Might be worth investigating.

@thecodrr
Copy link
Contributor

The changes look okay but I am not sure if we should mix the two. It's possible that a user has disabled markdown shortcuts but still wants to paste markdown. If we mix the two it'll annoy users.

@01zulfi
Copy link
Contributor Author

01zulfi commented Oct 28, 2025

It's possible that a user has disabled markdown shortcuts but still wants to paste markdown

I would agree, but markdown shortcuts was recently upgraded to premium.

@thecodrr
Copy link
Contributor

thecodrr commented Oct 29, 2025

I would agree, but markdown shortcuts was recently upgraded to premium.

That doesn't change what I said though. Paid users could still want to disable markdown but keep pasting markdown.

@kate0037
Copy link

kate0037 commented Nov 1, 2025

I would agree, but markdown shortcuts was recently upgraded to premium.

That doesn't change what I said though. Paid users could still want to disable markdown but keep pasting markdown.

Hi! I would like to suggest that it would be much better if you could provide an option in the settings for users to choose whether to turn this feature on or off. I believe Notesnook offers more features than its competitors, but it can be frustrating when a feature I don't need is enabled by default and cannot be disabled. For example, Notesnook shows a preview for notes, but there is no way to turn it off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How can I prevent Notesnook from converting my text into Markdown?

3 participants