Comments (7)
Yup, upstream issue. Similar to ckeditor/ckeditor5#5862. And perhaps exactly this: ckeditor/ckeditor5#1239.
from github-writer.
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(_
) is in a word boundary. It would not solve all cases, but it would help.
Auto-formatting can be undone, by pressing ctrl/cmd+z
right after the formatting happens. It has its learnability issue, but it's hard to say if this will be seen as a bug or an enhancement.
from github-writer.
I would rather use the _
as an opening/closing for the auto-formatting only on the beginning/end of the word respectively. Underscore inside a word should be treated as a regular character.
This case is especially visible here on GH in inline code as it is not possible to format only a part of the code.
from github-writer.
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 _
work only when used at the beginning of some word and closing _
only at the end of a word, but that's more tricky.
from github-writer.
and closing
_
only at the end of a word
I think we're able to check only the start, because the end _
, which triggers auto-formatting, happens when the user is typing and we don't know what will be typed next.
from github-writer.
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?
from github-writer.
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.
I've decided to go a longer way and reviewed the auto-formatting totally. For more information, check out #105.
from github-writer.
Related Issues (20)
- Refreshing the page during uploading an image causes it to load infinitely HOT 1
- Restoration of GitHub Writer functional tests.
- Extension JS source map fails to load - chrome Version 114.0.5735.198 (Official Build) (64-bit)
- Does not work on Wiki pages HOT 2
- Microsoft Azure - Directorio para desarrollar en Español
- # Launchpad HOT 1
- A bit confused about using GitHub Writer
- Update stale messages
- Editor not opening for .MD files HOT 4
- Enable ZenHub support HOT 1
- Extension does not load (only shows markdown editor) for Issues & Wiki in both Chrome & Firefox HOT 3
- Mermaid Diagrams Not Correctly Rendering Inline Markdown Formatting
- Support user-whitelisted websites? HOT 1
- Add the green shield in the editor when activated HOT 1
- Support the GitHub project incarnation of markdown editor.
- Support github.dev HOT 1
- how to run it?
- The "Edit" button on a wiki page does not override the default editor
- Support for on-premises GitHub Enterprise server
- Broken appearance HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-writer.