PPTX: hidden slides are converted like visible ones, with no mark
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
The slide-number comment is emitted by the PPTX converter, so start there and find where each slide's element is read. Check the show attribute on the slide's <p:sld> element (hidden when it is 0 or false) and emit a <!-- Hidden slide --> marker next to the slide number, keeping the content. Run the repro from the issue to confirm slide 2 is marked. A pull request (#2818) is already open against this issue, so check it before starting.
索引モデルが issue の本文から書いたものです。
説明
A slide hidden in PowerPoint (Hide Slide) comes out of the PPTX converter like any other slide, with nothing in the Markdown to say it was hidden. A reader of the output, often an LLM, takes a hidden draft or internal note as part of the deck the author meant to show.
Repro on main (7482c09), with python-pptx 1.0.2:
import io
from pptx import Presentation
from markitdown import MarkItDown, StreamInfo
prs = Presentation()
for title in ("Visible one", "Internal draft", "Visible two"):
prs.slides.add_slide(prs.slide_layouts[5]).shapes.title.text = title
prs.slides[1]._element.set("show", "0") # what Hide Slide writes on <p:sld>
buf = io.BytesIO()
prs.save(buf)
buf.seek(0)
print(MarkItDown().convert_stream(buf, stream_info=StreamInfo(extension=".pptx")).markdown)
Output:
<!-- Slide number: 1 -->
# Visible one
<!-- Slide number: 2 -->
# Internal draft
<!-- Slide number: 3 -->
# Visible two
Slide 2 is hidden in the file, but the output gives no sign of it.
I'd expect a mark next to the slide number, for example <!-- Hidden slide -->, keeping the content as it is, the same way speaker notes stay in the output under their own heading. python-pptx has no property for this, so the converter would read show on <p:sld> (hidden when it is 0 or false).
Hidden XLSX sheets are a similar case, already tracked in #1073, so this issue covers slides only.
- 主要言語
- Python
- スター
- 198k
- フォーク
- 15k
- 平均マージ
- 2時間 16分
- マージ済み PR(30日)
- 9
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/markitdown のほかの issue
-
IpynbConverter uses a comment inside a Markdown code fence as the notebook title対応中かも @Primaverah が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
microsoft/markitdown#2964 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
PPTX image alt text ending in a backslash breaks the Markdown image対応中かも @dongyikuan919 が 3 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
microsoft/markitdown#2943 ·
メンテナーはふだん 1 日以内に返信
-
PPTX chart labels with pipes or line breaks produce malformed Markdown tables対応中かも @dongyikuan919 が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
microsoft/markitdown#2937 ·
メンテナーはふだん 1 日以内に返信
-
DOCX: math pre-processing re-parses every document.xml even without equations (32 s -> 17.5 s on a 12.5 MB document)対応中かも @houyunsun が 26 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 89/100
microsoft/markitdown#2834 ·
メンテナーはふだん 1 日以内に返信
-
URL fetch sends default python-requests User-Agent, Wikipedia returns 403対応中かも @sushan5140 が 31 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
microsoft/markitdown#2820 ·
メンテナーはふだん 1 日以内に返信
microsoft/markitdown の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
hugohe3/ppt-master#366 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 89/100
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
521xueweihan/HelloGitHub#4716 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
pcqpcq/open-source-android-apps#619 ·
メンテナーはふだん 1 日以内に返信
-
contribution Windows 主机
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Lee-xeo/Claude-Cage#1519 ·
メンテナーはふだん 1 日以内に返信