Links inside bold/italic text result in invalid HTML
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript
- 領域
- tooling
調査の方向性
まず、リポジトリの JavaScript パーサーで issue の Markdown 例を再現し、太字および斜体のラン内にネストされたリンクの処理箇所を特定します。生成された HTML を期待される出力と比較し、同じケースでリンク内の書式を変更せずに、タグが正しくネストされることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Links inside runs of bold or italic text are rendered as invalid HTML.
For example, the following Markdown:
foo **[link](https://example.com)** bar
is rendered as:
foo <strong><a href="https://example.com">link</strong></a><strong> bar</strong>
whilst the expected output would be:
foo <strong><a href="https://example.com">link</a></strong> bar
Two things are unexpected here:
- The output is invalid because the
<strong>and<a>tags are closed in the same order in which they're opened. - The
<strong>tag is then re-opened and not closed until the end of the text, causing more of the text to be bold than intended.
The same happens when using __ instead of **, as well as with italics (_ or *).
When the formatting is inside the link, the result is as expected:
foo [**link**](https://example.com) bar
This renders as:
foo <a href=\"https://example.com\"><strong>link</strong></a> bar
- 主要言語
- JavaScript
- スター
- 2.4k
- フォーク
- 115
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
developit/snarkdown のほかの issue
-
Checkmark support オープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
developit/snarkdown の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
area-deployment area-integrations triage:bot-seen
難易度 2/5 半日 初心者へのやさしさ 86/100
-
Issue-Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
sugarlabs/musicblocks#8924 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
ArduPilot/ardupilot_wiki#8088 ·
-
[BUG] createTool tools cannot be registered with Mastra when exactOptionalPropertyTypes is enabled オープンcustomer-eng status: needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100