Support text highlights with <mark>
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by tracing the read, publish, update, and check entry points that handle Markdown and Confluence formatting. Compare the existing span and mark handling, then verify that highlighted text survives a read → edit → update cycle and that the supported mark syntax is reported consistently by check.
索引モデルが issue の本文から書いたものです。
説明
Problem
readdrops highlights. Confluence's editor can give a run of text a background colour. It is stored as<span style="background-color: rgb(…)">and becomes an ADFbackgroundColormark.readwrites only the text, so a read → edit → update cycle removes every highlight from the page. (Verified 2026-09-26 on a scratch page.)- There is no way to write a highlight in Markdown.
==text==is not GFM and stays literal. A raw<mark>passes through, but Confluence drops the tag and keeps only the text. Only a raw<span style="background-color: …">works, and nobody would guess that.
What Confluence did with each spelling (storage read back, then ADF):
| written | stored | takes effect (ADF) |
|---|---|---|
<span style="background-color: #fff0b3;"> |
kept, rewritten as rgb(255,240,179) |
yes, backgroundColor |
the same in rgb() |
kept | yes |
<mark> |
tag dropped, text kept | no |
<span data-highlight-colour="…"> (the table-cell attribute) |
attribute dropped | no |
<span style="color: …"> (text colour, for comparison) |
kept | yes, textColor |
Proposal
Use <mark>, which GitHub renders:
| Markdown | published as |
|---|---|
<mark>some text</mark> |
<span style="background-color: #fff0b3;">some text</span> (a default colour) |
<mark style="background-color: #ffbbbb;">some text</mark> |
<span style="background-color: #ffbbbb;">some text</span> |
read writes a highlighted span back as <mark> (the default colour) or <mark style="background-color: …"> (any other colour), so the page survives a round trip. Markdown inside a <mark> is still converted.
The attribute is background-color, not color, because in CSS color is the text colour.
Open questions
- Default colour.
#fff0b3is the table-cell palette's yellow. The editor's text-highlight palette may differ; read back a highlight made in the editor to find out. - Names or only hex? Cell colours accept swatch names. A name is not valid in a CSS
background-color, so either hex only, or names in another attribute. - An unrecognised colour. Publish with a warning, as an unknown cell colour does, and have
checkreport it? - Text colour.
readprobably drops<span style="color: …">the same way. Handle it here, or in a separate issue?
- 主要言語
- Go
- スター
- 4
- フォーク
- 1
- 平均マージ
- 2時間 31分
- マージ済み PR(30日)
- 59
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
mozilla/markfluence のほかの issue
-
read: a bold or italic span starting or ending with punctuation reads back as literal asterisksオープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
mozilla/markfluence#216 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
mozilla/markfluence#214 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
mozilla/markfluence#213 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
mozilla/markfluence#209 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
mozilla/markfluence#205 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
mozilla/markfluence の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
status: ready for dev
難易度 1/5 1〜3時間 初心者へのやさしさ 92/100
hyperledger-labs/fabric-smart-client#2004 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/datasketches-go#189 ·
メンテナーはふだん 1 日以内に返信