BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

Code Block is not generated inside parentheses

Open dev2820 opened this issue 2 years ago • 2 comments

Describe the bug when I make Code Block using backtick in parentheses, then Code Block not generated

code block not created

code block not working cases

I don't know why it behaves like this because I haven't figured out the behavior of the code yet. However, if I have enough time, I will try to figure out the problem. First of all, I think it's important to note that there is a bug, so I'm writing this down.

To Reproduce This bug can demonstrate on BlockNote's demo site. (The gif posted earlier was also created on the demo site)

  1. Access https://www.blocknotejs.org/ in Chrome (Chrome 116.0.5845.180)
  2. Write the string between parentheses with backticks.

dev2820 avatar Sep 08 '23 15:09 dev2820

This is unrelated to BlockNote itself, but rather a default TipTap behavior (see screenshot below).

I'm in the process of trying to find a workaround that doesn't involve editing TipTap's Code extension itself, and will get back to you here if I can figure something out.

Screenshot 2023-09-20 at 7 29 54 AM

You can check out the playground here: https://tiptap.dev/api/marks/code

marwan37 avatar Sep 20 '23 12:09 marwan37

Should be resolved in Tiptap version 2.11.0

nperez0111 avatar Dec 31 '24 08:12 nperez0111