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

Markdown copy-paste bug: link jumps

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
javascript
領域
frontend

調査の方向性

レポート内の文をコピーして GitHub のコメント欄に貼り付けることで問題を再現し、次にリポジトリ内で貼り付け処理のエントリポイントを追跡します。貼り付け後の Markdown を、issue に示されている期待される 3 リンクの出力と比較します。3 番目のリンクが他のリンクを変更せずにラベルに付いたままになれば完了です。

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

説明

I'm copying a mere line of text from my own older post to quote it in a new post.
This line got 3 embedded urls, two of which are copied correctly, but the 3rd breaks weirdly.

Reproduction Steps

  1. Select the sentence below and hit CTRL+C:

    • Blah-blah [1], [2] foo z2-3, bar [3].
    • Underlying markdown code:
      Blah-blah [[1](https://goo.gl)], [[2](https://goo.gl)] foo z2-3, bar [[3](https://goo.gl)].
      
    • Underlying html code (obtained with Right-click -> Inspect -> Copy element):
    <p dir="auto">Blah-blah [<a href="https://goo.gl" rel="nofollow">1</a>], [<a href="https://goo.gl" rel="nofollow">2</a>] foo z2-3, bar [<a href="https://goo.gl" rel="nofollow">3</a>].</p>
    
  2. Find any "Add a comment" text input field on https://github.com/ and CTRL+V there. The result looks like this (note that the last link suddenly "jumped"):

    • Blah-blah [1], [2] foo z2-3, bar [3].

    • Same as code:

      Blah-blah [[1](https://goo.gl/)], [[2](https://goo.gl/)] foo z2-[3](https://goo.gl/), bar [3].
      

I've originally reported this to https://support.github.com/contact/bug-report , but they asked me to report it here.

主要言語
JavaScript
スター
234
フォーク
47
平均マージ
1日 12時間
マージ済み PR(30日)
5

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

github/paste-markdown のほかの issue

github/paste-markdown の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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