-
Notifications
You must be signed in to change notification settings - Fork 62
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
Typing second underscore in a paragraph makes italic from the first one #34
Comments
That's certainly and issue with the auto-formatting feature and we must report it at CKEditor 5. One could say that auto-formatting should be triggered only if the opening marker( Auto-formatting can be undone, by pressing |
I would rather use the This case is especially visible here on GH in inline code as it is not possible to format only a part of the code. |
Yup, upstream issue. Similar to ckeditor/ckeditor5#5862. And perhaps exactly this: ckeditor/ckeditor5#1239. |
The minimum thing to do would be to disable all automatic things happening inside code blocks and inline code. An even better solution would be to make the opening |
I think we're able to check only the start, because the end |
I'm considering disabling auto-formatting for italics when typing underscore, for the time being. It is a character used way too often and having such feature seems to cause more harm that good. WDYGT? |
I've decided to go a longer way and reviewed the auto-formatting totally. For more information, check out #105. |
TC
Start typing in a paragraph with some underscore inside the text, like:
Continue typing something with
_
inside.Expected: nothing changes.
Current: the whole part from the first
_
get italic until the second one, the underscore disappears:The text was updated successfully, but these errors were encountered: