-
-
Notifications
You must be signed in to change notification settings - Fork 457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix/code block in parentheses #341
base: main
Are you sure you want to change the base?
Bugfix/code block in parentheses #341
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@marwan37 is attempting to deploy a commit to the TypeCell Team on Vercel. A member of the Team first needs to authorize it. |
Nice find! Though if this is an issue in TipTap's code base, wouldn't it be better to make a PR in their repo? It seems like a pretty major workaround to pretty much copy a file from TipTap to BlockNote, when the change could be made directly at the source of the issue |
@matthewlipski You're absolutely right. My initial approach was to provide a quick fix for BlockNote users, but I understand the concerns about maintaining a separate copy of the file. I'll look into submitting a PR to TipTap directly. |
Awesome, let me know how it goes - if for some reason the TipTap guys don't approve the changes, we can sort out a fix in BlockNote |
@matthewlipski Thanks for the guidance! I've submitted a PR to the TipTap repo addressing the issue here. I'll keep you posted on its progress. |
Description
In the current implementation of the @tiptap/extension-code, the regex pattern does not correctly format text enclosed in backticks when they are immediately preceded or followed by any character other than whitespace.
fixes: #338
Changes
packages/code/extensions/CustomCode/CustomCodeExtension.ts
.code.ts
file from TipTap's extension and updated theinputRegex
andpasteRegex
patterns (see below)Testing