Code Monkey home page Code Monkey logo

Comments (7)

Reinmar avatar Reinmar commented on July 26, 2024 1

Yup, upstream issue. Similar to ckeditor/ckeditor5#5862. And perhaps exactly this: ckeditor/ckeditor5#1239.

from github-writer.

fredck avatar fredck commented on July 26, 2024

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.

vokiel avatar vokiel commented on July 26, 2024

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.

Reinmar avatar Reinmar commented on July 26, 2024

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.

fredck avatar fredck commented on July 26, 2024

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.

fredck avatar fredck commented on July 26, 2024

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.

fredck avatar fredck commented on July 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.