[bug]: Code block syntax highlighting breaks completely upon pasting code (only works when manually typed)
Los mantenedores suelen responder en 1 día
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
The rich-text editor actually contains functional syntax highlighting token rules for PowerShell (as verified when writing single commands line-by-line). However, the editor completely fails to parse and tokenize text content when it is introduced via a Copy-Paste action.
- When a script is pasted into an existing ````powershell` block, the text remains entirely plain white text.
- When the exact same syntax components (variables, string literals, arguments) are typed in manually, the editor instantly maps the CSS highlighting rules correctly.
This indicates a severe bug in the editor's Paste-Handler extension, which suppresses tokenization/re-rendering of the code block nodes upon clipboard input injection.
Steps to reproduce
- Create a PowerShell code block inside an issue description or page using
```powershell - Scenario A (Manual Input): Type a basic snippet by hand (e.g.,
$ApiKey = $env:OPENAI_API_KEY).
-> Result: Variables and values get highlighted instantly. - Scenario B (Paste Input): Copy a multi-line script from an external editor (VS Code, Notepad, etc.) and press Ctrl+V to paste it into the same block.
-> Result: The pasted content drops all syntax formatting and renders completely plain/white.
Expected Behavior
Injecting clipboard data into a language-specific Fenced Code Block node must trigger the underlying lowlight/Prism lexer to parse the block immediately, ensuring that pasted documentation remains fully highlighted and readable.
Environment
- Component: packages/editor or apps/web (Tiptap Paste Handler/Lowlight Node extension)
- Impacted Scope: Multi-line technical documentation snippets.
Environment
Production
Browser
Mozilla Firefox
Variant
Self-hosted
Version
v1.4.1
- Lenguaje dominante
- TypeScript
- Estrellas
- 61.1k
- Forks
- 6.1k
- Merge medio
- 1 d 11 h
- PR fusionados (30 d)
- 79
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de makeplane/plane
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
[bug]: Email notifications show a broken avatar for users without a profile photoPosiblemente ocupada @gurnoorpannu la tomó hace 6 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
makeplane/plane#10009 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
🐛 Bug: Calendar work items cannot be opened on mobilePosiblemente ocupada @pennnnnnnnnn la tomó hace 8 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
[bug]: First day of the week section not translated when Idioma is EspañolPosiblemente ocupada @deepcfr la tomó hace 11 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
makeplane/plane#9967 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
[bug]: First day of the week section not translated when Idioma is EspañolPosiblemente ocupada @Indira-kumar la tomó hace 9 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
Todos los issues de makeplane/plane
Issues similares
-
area: repo priority: P2 type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
appandflow/stim#4107 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Dificultad 1/5 1-3 horas Aptitud para principiantes 60/100
lingdojo/kana-dojo#32859 · 1 comentario · 5 reacciones ·
Los mantenedores suelen responder en 1 día
-
code-quality refactoring
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
github/gh-aw-firewall#10364 ·
Los mantenedores suelen responder en 1 día
-
Merge the duplicate kaffir_corn record into sorghumPosiblemente ocupada @Crypto-Shroom la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Crypto-Shroom/Bird-Feed-Calculator#322 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
drizzle-team/drizzle-orm#6552 ·
Los mantenedores suelen responder en 2 días