Cannot use a `|` character in table header
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- typescript
- 領域
- frontend
調査の方向性
提供されたテーブルを作成し、Markdown ビューとプレビュー ビューを切り替えて、エディターで問題を再現します。切り替えるたびに Markdown ソースを比較します。エスケープされたパイプ文字または提供された HTML エンティティがそのまま維持され、テーブルが引き続き正しくレンダリングされれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
The stacks-editor overwrites/parses markdown when switching between preview and markdown views which is not allowing me to put a | character into a header. Some variations that I've tried:
- Add
\to escape the pipes. the editor strips out my escapes. - Use the HTML character code
|. This also gets parsed out and translated to just | which loses the escape - Combine the above 2 approaches -
I\|Like\|\|PipesMaybe we can escape the character code and escape the escapes! Toggling between markdown and preview modes progressively modifies the markdown source until the table is broken as in, it renders a proper table but showsI|Like||Pipesand thenI|Like|Pipesand then broken table. - Try editing in the preview mode instead of the markdown. So build the table and then add the pipes in from the preview mode. Also doesn't work.
To Reproduce
- Try to create a table where one of the headers has a | in it. Example:
| Column1 | I\|Like\|Pipes |
| ------- | -------------- |
| tables | r fun |
- Switch to preview mode to ensure the escapes worked as I'd expect and see
I|Like|Pipesin the preview. - Either post or switch back to markdown view and see that the table no longer renders correctly.
Expected behavior
I should be able to put a | character into a table header if I'd like either by escaping them or using |. I'd expect toggling between view modes not to produce different results.
Screenshots

Desktop (please complete the following information):
- OS: [e.g. iOS] Windows
- Browser [e.g. chrome, safari] chrome
- Version [e.g. 22] 107.0.5304.63
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
- The old editor supported both escaping and
|. - The loss of content between switching views seems related to https://github.com/StackExchange/Stacks-Editor/issues/151
- 主要言語
- TypeScript
- スター
- 440
- フォーク
- 61
- 平均マージ
- 19時間 52分
- マージ済み PR(30日)
- 23
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
StackExchange/Stacks-Editor のほかの issue
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
StackExchange/Stacks-Editor#504 · コメント 1 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
StackExchange/Stacks-Editor#395 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
StackExchange/Stacks-Editor#343 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Task list supportオープンenhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
StackExchange/Stacks-Editor#272 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
StackExchange/Stacks-Editor#250 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
StackExchange/Stacks-Editor の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
better-auth/better-auth#11723 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area: docs difficulty: easy documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
Worker-Erstellung bricht langsame Git-Worktree-Checkouts nach 20 Sekunden ab対応中かも @KajoVanBuyten が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
AgentSystemLabs/agent-office#367 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
pierrecomputer/pierre#1187 ·
メンテナーはふだん 1 日以内に返信
-
area: frontend bug
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
snapotter-hq/SnapOtter#2425 ·
メンテナーはふだん 1 日以内に返信