Autoformat rule for division applies when typing URLs and inside code blocks #4353
12joan
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
The autoformat rule for division applies when typing any text containing
//
, includinghttps://
(https:÷
) and comments inside code blocks (÷ This is a comment
).Steps
https://platejs.org/
Screen.Recording.2023-07-22.at.10.58.03.mov
Screen.Recording.2023-07-22.at.11.04.26.mov
Expectation
^|\s
.// -> ÷
, no one needs to use a division sign at the start of a line, so the regex can be just\s
(or[\d\s]
to allow use directly after numerals).Environment
Funding
Beta Was this translation helpful? Give feedback.
All reactions