Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[bug]: Code block syntax highlighting breaks completely upon pasting code (only works when manually typed)

オープン
#9,638 コメント 1 件 リアクション 0 件 担当者 2 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@vihar がすでに取り組んでいます。

2026年8月19日 から。

  • #9671 @UGilfoyle による — マージされずにクローズ

評価

この issue はまだ評価されていません。

説明

🐛bug plane
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.
Image

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
  1. Create a PowerShell code block inside an issue description or page using ```powershell
  2. Scenario A (Manual Input): Type a basic snippet by hand (e.g., $ApiKey = $env:OPENAI_API_KEY).
    -> Result: Variables and values get highlighted instantly.
  3. 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

主要言語
TypeScript
スター
61.1k
フォーク
6.1k
平均マージ
1日 11時間
マージ済み PR(30日)
79

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

makeplane/plane のほかの issue

makeplane/plane の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。