Rich text editor can generate potentially invalid commonmark
Les mainteneurs répondent en général sous 1 jour
Évaluation
Cette issue n'a pas encore été évaluée.
Description
Reported on Meta.SE
Describe the bug
Overlapping bold/italic formatting leads to incorrect formatting when toggling to Markdown mode.
- In rich text mode, write some text.
- this is bold, now italic, and now?!
- Select part of the text.
- Make the selection italic.
- this is bold, now italic, and now?!
- Select some overlapping text.
- Make the selection bold.
- this is bold, now italic, and now?!
(Now bold and italic formatting is correctly applied to overlapping portions of the text.)
When switching to Markdown, the formatting is screwed up because Markdown doesn’t support overlapping formatting in this way: adjacent
*/**is ambiguous at the best of times, but Markdown wouldn’t support this even when using_to format italics.Here’s what the editor generates:
**this is bold, *now italic****, and now?!*… but as mentioned, even the following isn’t really supported by Markdown as far as I’m aware (it certainly isn’t on this site):
**this is bold, _now italic**, and now?!_
- Langage dominant
- TypeScript
- Étoiles
- 441
- Forks
- 61
- Merge moyen
- 20 h 35 min
- PR mergées (30 j)
- 18
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de StackExchange/Stacks-Editor
-
enhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
StackExchange/Stacks-Editor#504 · 1 commentaire · 2 réactions ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
StackExchange/Stacks-Editor#395 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
StackExchange/Stacks-Editor#343 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Task list supportOuverteenhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
StackExchange/Stacks-Editor#272 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Math formulas supportOuverteenhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
StackExchange/Stacks-Editor#250 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de StackExchange/Stacks-Editor
Issues similaires
-
b:minor bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
software-mansion/argent#1698 ·
Les mainteneurs répondent en général sous 1 jour
-
e2e-failure ready-to-code
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
redhat-developer/rhdh-plugin-export-overlays#4624 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
better-auth/better-auth#12132 · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
automation missing-model model-sync provider:tinfoil
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
anomalyco/models.dev#12053 ·
Les mainteneurs répondent en général sous 1 jour
-
o8 next debug build aborts on Glass to Dark appearance switch (nil identifier messaged before check)Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
hurttlocker/o8#5112 ·