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

Reference links do not translate

オープン 初心者向け
#733 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
markdown, python
領域
web-dev

調査の方向性

参照リンクの定義([reference link]: url のような行)が収集され、インラインの [text][ref] リンクが置換される markdown2.py から着手してください。イシュー内の再現スニペットは、そのまま失敗するケースになっています。tests/ ディレクトリに既存のリンク/参照リンクのテストケースがないか確認し、この例をそのひとつとして追加してください。スニペットが定義された URL を持つ a タグとしてレンダリングされ、テストスイート全体が通れば完了です.

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

説明

Bug

Describe the bug

Reference links are not properly translated to links in the generated HTML.

To Reproduce

This is a [reference link] and should be translated to an `a` tag in the generated HTML.

[reference link]: https://gist.github.com/emedinaa/28ed71b450243aba48accd634679f805

(The link is actually a gist that shows different ways to do links in Markdown, including this style.)

Expected behavior

The following HTML should be produced:

<p>This is a <a href="https://gist.github.com/emedinaa/28ed71b450243aba48accd634679f805">reference link</a> and should be translated to an <code>a</code> tag in the generated HTML.

Debug info
Version of library being used: 2.5.4 and 2.5.5

Any extras being used: None

Additional context
Add any other context about the problem here.

主要言語
Python
スター
2.8k
フォーク
463
平均マージ
2日 9時間
マージ済み PR(30日)
8

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

trentm/python-markdown2 のほかの issue

trentm/python-markdown2 の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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