mailto: and tel: links are converted to plain text

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

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

@patrick-5546 がすでに取り組んでいます。

2026年10月6日 から。

  • #2645 @patrick-5546 による — オープン
  • #2648 @iosayin による — オープン
  • #2696 @udbhav-shrinet による — オープン
  • #2736 @OUAO-FRANK による — オープン

評価

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

調査の方向性

Start at _CustomMarkdownify.convert_a (the HTML converter in markitdown) to see where the scheme allow-list of http/https/file is enforced, and check the DOCX hyperlink path that feeds the same code. The issue includes a reproduction script whose expected output is Contact [the team](mailto:[email protected])., and tests would live alongside the existing HTML/DOCX converter tests. Done means mailto: and tel: hrefs survive as Markdown links while javascript: still reduces to plain text — but note three pull requests (#2645, #2648, #2661) are already open against this issue, so the work is under way and a newcomer should coordinate first.

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

説明

_CustomMarkdownify.convert_a keeps only http, https and file links, and reduces any other scheme to the link text. Dropping javascript: links makes sense, but e-mail and phone links are common in documents and can't run code.

import io
from markitdown import MarkItDown

html = b'<p>Contact <a href="mailto:[email protected]">the team</a>.</p>'
print(repr(MarkItDown().convert_stream(io.BytesIO(html), file_extension=".html").markdown))

Actual: 'Contact the team.'

Expected: 'Contact [the team](mailto:[email protected]).'

The attached DOCX has the same link as a Word hyperlink and gives the same result. tel: links are dropped the same way.

markitdown-mailto-link.docx

Environment: markitdown 0.1.8 (main 4cc9fa1), Python 3.14.8, Ubuntu 24.04.5 LTS.

主要言語
Python
スター
198k
フォーク
15k
平均マージ
2時間 16分
マージ済み PR(30日)
9

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

microsoft/markitdown のほかの issue

microsoft/markitdown の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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