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

read: a bold or italic span starting or ending with punctuation reads back as literal asterisks

オープン
#216 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go, markdown
領域
cli, content

調査の方向性

Start with the table property test mentioned in the issue and trace the read/write and publish conversion paths for marked spans. Reproduce the punctuation cases against the current goldmark-based behavior, then compare the relevant handling with CommonMark's flanking rules. Done means spans such as (b) next to letters no longer round-trip or publish with literal asterisks.

索引モデルが issue の本文から書いたものです。

説明

A bold, italic or strikethrough span whose text starts or ends with punctuation, with a letter or digit just outside it, reads back as literal asterisks. Reproduced on main:

storage read writes publish sends
<p>a<strong>(b)</strong>c</p> a**(b)**c <p>a**(b)**c</p>
<p><strong>&amp;copy;</strong>a</p> **\&copy;**a (since #203) literal asterisks

CommonMark's flanking rule has two halves. The whitespace half (a delimiter next to whitespace on the wrong side does not open or close) was fixed for marks in #204. The punctuation half remains: a closing ** preceded by punctuation closes only if it is followed by whitespace or punctuation, and an opening ** followed by punctuation opens only if it is preceded by whitespace or punctuation. So **(b)**c does not close, and the whole span publishes as text with its asterisks.

Escaping cannot fix it, since the punctuation is the span's own text. Possible fixes:

  • Write such a span as inline HTML (<strong>(b)</strong>), which goldmark passes through and the forward converter already accepts.
  • Use the _ delimiter where it helps. It has stricter intraword rules, so it is probably not a general answer.

Found while working on #203; the table property test's generator now keeps a mark's text from starting or ending with punctuation to avoid it.

主要言語
Go
スター
4
フォーク
1
平均マージ
2時間 31分
マージ済み PR(30日)
49

環境構築

はじめの一歩

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

mozilla/markfluence のほかの issue

mozilla/markfluence の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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