Skip to content

feat(pdf): mark superscript and subscript text from glyph size and baseline - #4815

Merged
PeterStaar-IBM merged 12 commits into
docling-project:mainfrom
yashikam19:feat/pdf-superscript-subscript
Nov 5, 2026
Merged

PeterStaar-IBM merged 12 commits into
docling-project:mainfrom
yashikam19:feat/pdf-superscript-subscript

Conversation

@yashikam19

@yashikam19 yashikam19 commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add an option that marks superscript and subscript text in PDFs. It is off by default.

Today, main converts E = mc² to E = mc 2 and 21st to 21 st, and H₂O loses its subscript and becomes H2O. With the option on, these characters become runs with formatting.script set to super or sub, as Docling already does for Word documents.

pipeline_options.script_position_options = ScriptPositionOptions(enabled=True)

A PDF has no label for superscript text. So the new step measures each character: a superscript is smaller than its line and drawn higher, a subscript is smaller and drawn lower.

Changes

  • docling/utils/pdf_char_geometry.py: reads the size and the baseline of each character with pypdfium2, for both PDF backends. Invisible text (render modes 3 and 7) is skipped.
  • docling/utils/script_position.py: finds the characters that are smaller than their line, raised or lowered, and next to the text they mark. Runs carry their own whitespace, and a space beside a script stays only where the PDF shows a gap of at least 0.1 of the font size.
  • docling/models/stages/script_position/: a new stage after the heading-hierarchy stage. A text item that has such characters keeps its place and holds an inline group of its runs. A list item keeps its marker. Each run has one provenance item for each page it is on. Only baseline runs get the item's hyperlink, so a linked footnote has one link.
  • ScriptPositionOptions in pipeline_options.py, a docs section in docs/usage/advanced_options.md, and the new modules in tach.toml.

Body text, list items and footnotes are handled. Headings, captions, tables, code and formulas do not change. OCR text, invisible text, and image input are left unchanged.

Issue resolved by this Pull Request:
Resolves #520

Checklist:

  • Documentation has been updated, if necessary.
  • Examples have been added, if necessary.
  • Tests have been added, if necessary.

Review evidence:

  • Before and after, with the default backend, docling-core 2.106.0 and the option on:

    document main, Markdown this branch, HTML this branch, Markdown
    Word export (new fixture) mc 2, H2O, 21 st mc<sup>2</sup>, H<sub>2</sub>O, 21<sup>st</sup> mc2, H2O, 21st
    elsevier-00.pdf, authors Duarte a,b,c,* , Duarte <sup>a,b,c,*</sup>, Duarte a,b,c,*,
    2206.01062.pdf, footnote [1 https://…](url) <sup>1</sup><a href="url">https://…</a> 1[https://…](url)
    normal_4pages.pdf, Korean note markers 상해 1) 나 상해<sup>1)</sup>나 상해1)나
  • The false spaces come from docling-parse, which starts a new word when a character's baseline moves far enough, and joins words with a space. With the option off, the output is the same as on main and keeps these spaces. With the option on, this PR removes them from the runs.

  • ParseBench FormattingRule, on the HTML export of the 87 PDFs with superscript or subscript labels. OCR was off.

    labels option off option on
    Superscript, with a text layer (265) 0 241
    Subscript, with a text layer (6) 1 6
    Total with a text layer (271 labels, 60 PDFs) 1 247 (91%)
    Scans or image-only pages (60 labels, 26 PDFs) 0 0

    A PDF counts as having a text layer if it has at least 100 letters or digits. One label (*) is not applicable under the rule.

  • Known limits:

    • Runs have one text value, so a removed space is removed from every export. Markdown has no script mark, so a marker set close to its text joins it: 2 e.g. AAPL becomes 2e.g. AAPL.
    • A space stays where the PDF has a gap above the threshold, for example Duarte <sup>a,b,c,*</sup>.
    • The marker of a linked footnote is outside the link. A script in the middle of linked text still splits the link.
    • With the pypdfium2 backend, a script can have spaces inside it. A raised script on the first line of a text block can become its own text item, and it is then not marked, such as the 2 of mc2 in the fixture.
    Screenshots from before the spacing fix: PDF page, main, this branch (rendered) 1_word_export 2_elsevier_authors 3_doclaynet_footnote 4_korean_note_markers
  • Reference data: no change. The option is off by default. With the option off, the Markdown, HTML and plain text of the four documents above are identical to main.

  • Tests:

    • tests/test_script_position.py: text that must be marked, text that must not be marked (such as %, °, small caps and the LaTeX logo), the spaces beside a script, the stage on a DoclingDocument, a linked footnote, a run that crosses a page break, and two paragraphs in a row in HTML.
    • tests/test_script_position_pdf.py: a PDF exported from Word, with both backends. The exact Markdown and HTML of the H2O and 21st lines, with the default backend. Rotated and cropped pages, invisible text, and image input.
  • Commands and results:

    • uv run pytest tests/test_script_position.py tests/test_script_position_pdf.py: 45 passed.
    • uv run pytest tests/test_options.py tests/test_heading_hierarchy.py tests/test_heading_hierarchy_pdf.py tests/test_backend_docling_parse.py tests/test_backend_docling_parse_legacy.py tests/test_backend_pdfium.py tests/test_backend_pdfium_rotation.py tests/test_pdf_outline.py tests/test_font_style.py: 174 passed.
    • make validate: passed.
  • CI: lint and run-tests-core fail because of two failures that are also on main, in tests/test_backend_asciidoc.py. This PR does not touch that file. test(asciidoc): expect run whitespace in the hard line break test #5186 fixes them.

…seline

A PDF draws superscript and subscript text as smaller glyphs that are moved
off the baseline. The PDF pipeline keeps them as plain text, so "E = mc²"
becomes "E = mc 2" and "H₂O" becomes "H 2 O".

Add ScriptPositionOptions, off by default. When it is on, a new stage runs
after the heading-hierarchy stage. It reads the baseline and the drawn size
of each character with pypdfium2, for each PDF backend. A character is a
superscript or subscript when it is smaller than the body text of its line
and raised or lowered against it, and it touches that text. A text item
with such characters becomes an inline group of runs with formatting.script,
as the Word backend produces. The stage removes the space that the text-line
builder adds before a script ("mc 2") when the PDF draws the two characters
side by side.

Body text, list items and footnotes are handled. Headings, captions, tables,
code, formulas and OCR text do not change. With the option off, the output
does not change.

Signed-off-by: Yashika Malhotra <106444881+yashikam19@users.noreply.github.com>
…aracters

Pick the body of a line from the groups set in the largest letters, so a large
symbol, such as a sum sign, does not make the text around it a superscript.

A line now ends where the baseline moves by most of a line height or where the
pen returns to the start of the line. A superscript stacked over a wide
subscript stays on its line.

A script must be moved by less than its own size. This rule replaces the
drop-cap rule, so a citation on the short last line of a paragraph is marked.

Measure only the characters that match the item's text, so characters from a
nearby line do not change the result. Join a surrogate pair from PDFium into
one character.

Compute every rewrite before the stage changes the document, so a failure
leaves the document unchanged. Read the source and the password from typed
attributes instead of with getattr.

Signed-off-by: Yashika Malhotra <106444881+yashikam19@users.noreply.github.com>
A run has no whitespace at its edges, as in the Word backend. The export
puts one space between runs, so a converted PDF and a Word document give
the same text, and no double space appears

Signed-off-by: Yashika Malhotra <106444881+yashikam19@users.noreply.github.com>
Signed-off-by: Yashika Malhotra <106444881+yashikam19@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ DCO Check Passed

Thanks @yashikam19, all your commits are properly signed off. 🎉

@mergify

mergify Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Merge Protections

🟢 All 2 merge protections satisfied — ready to merge.

Show 2 satisfied protections

🟢 Enforce conventional commit

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?(!)?:

🟢 Require two reviewer for test updates

When test data is updated, we require two reviewers

  • #approved-reviews-by >= 2

@github-actions github-actions Bot added ai:ci-needs-care AI triage: check CI-safety findings before you approve CI enhancement New feature or request pdf PDF issue (except docling-parse) pdf parsing PDF issue related to docling-parse reading_order labels Oct 14, 2026
@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

AI triage (advisory)

Checked commit d5bc94a8c6. The analysis read the diff only. It did not run code from this pull request.

This pull request adds an opt-in pipeline stage to detect superscript and subscript text in PDF documents. The stage reads character sizes and baselines with pypdfium2 and converts matching items into inline groups with script formatting.

CI safety: needs maintainer care before you approve CI.

  • tach.toml: changes CI test selection

The ai:* labels are advisory. They do not approve CI and they do not add tests:full. A new push runs this check again.

@codecov

codecov Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.39759% with 44 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...ls/stages/script_position/script_position_model.py 81.37% 16 Missing and 11 partials ⚠️
docling/utils/pdf_char_geometry.py 88.23% 6 Missing and 4 partials ⚠️
docling/utils/script_position.py 96.08% 3 Missing and 4 partials ⚠️

📢 Thoughts on this report? Let us know!

Signed-off-by: Yashika Malhotra <106444881+yashikam19@users.noreply.github.com>
…subscript

Signed-off-by: Yashika Malhotra <106444881+yashikam19@users.noreply.github.com>

# Conflicts:
#	docs/usage/advanced_options.md
@github-actions github-actions Bot added ai:ci-needs-care AI triage: check CI-safety findings before you approve CI and removed ai:ci-needs-care AI triage: check CI-safety findings before you approve CI labels Oct 21, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI first review (advisory): no blocker found

This review covers the full diff at 4ca9071696. It read the code and did not run it.

New opt-in stage that marks superscript and subscript text in PDF documents. The feature is off by default. The algorithm, locking, and document-mutation order are correct. No regressions to existing behavior. The reviewer should confirm that standalone page footnotes being rewritten into inline groups (not just footnotes referenced by tables/pictures) is the intended scope.

A maintainer makes the merge decision. This review never approves the pull request.

@github-actions github-actions Bot added the ai:review-lgtm AI first review found no blocker or major issue (advisory) label Oct 21, 2026
@yashikam19

Copy link
Copy Markdown
Contributor Author

@dolfim-ibm @PeterStaar-IBM @cau-git, this PR is ready for review. The branch is up to date with main.

Analysis on the current head (4ca90716)

I converted real PDFs from ParseBench twice with the default backend: with the option off (the same as main) and with the option on. Then I scored the HTML export with ParseBench's own is_sup and is_sub rules, and I read every mark and every miss that the rules could not explain.

Detection: 87 PDFs with superscript or subscript labels

ParseBench has one label per superscript or subscript text in a document, for example "(1) must be superscript".

Labels on PDFs with a text layer (263 labels, 56 PDFs) Option off Option on
Superscript (257) 0 239
Subscript (6) 1 6
Total 1 245 (93%)
  • 10 more labels are marked, but the text inside the mark differs a little from the label (a space or a different dash from the PDF text layer), so the rule does not match. With these, 255 of 263 (97%) are marked.
  • 8 labels are not marked. 4 are in headings or table cells, which the option does not change. 2 are not in the PDF text layer. 1 is a footnote marker on a line with no other letters (the text before it is redacted). For 1 label, I could not find the character it means.
  • 68 more labels are on scans, image-only pages, or broken text layers. The option does not change OCR text, so they are out of scope.

False marks: the option never marked normal text

Set Marks Wrong
The 87 labelled PDFs 348 0
100 random PDFs without labels 2 0
  • There are more marks than labels, because a document often has the same superscript more than once. For example, a footnote number is marked in the sentence and again at the footnote.
  • Most marks match a label. I read the others by hand, and all of them are real superscripts.
  • On the 100 PDFs without labels, the only 2 marks are m², which is correct.

Cost: for the 1-page PDFs, there is no measurable difference between off and on (about 0.25 s per document). On multi-page PDFs from tests/data: +0.26 s on 9 pages and +0.12 s on 18 pages.

Method and limits
  • The scores use ParseBench's FormattingRule, which passes a label when the output has <sup>text</sup> or <sub>text</sub>.
  • OCR was off, so scans have no text, and their labels cannot pass. The option does not change OCR text in any case.
  • The 100 PDFs without labels were sampled at random from the ParseBench text documents.
  • The timings come from single runs on one machine.

A note on the export

The option sets formatting.script on the runs in the DoclingDocument. The exporters show the runs as follows:

Export Option off Option on
HTML <p>Water is H2O …</p> <span class='inline-group'>Water is H <sub>2</sub> O …</span>
Markdown Water is H2O … Water is H 2 O …

docling-core's inline-group serializer puts a space between runs, and it writes an inline group as a <span> and not as a <p>. The Word backend shows the same output. So with the option on, Markdown gets a space around each subscript that had none in the PDF. Should I fix the spacing in docling-core first, or is the option acceptable as it is, since it is off by default?

Possible follow-ups

These are out of scope for this PR. I can open issues or PRs for them if they are useful.

  1. Headings and table cells. Ordinals in dates (22nd) and units in tables (m²) are common there. This PR excludes them to keep the change small.
  2. Spacing between runs in the HTML and Markdown export, so that H₂O stays H2O in Markdown and becomes H<sub>2</sub>O in HTML. This change belongs in docling-core.
  3. Superscript and subscript in the Markdown export, for example as an option to write <sup> and <sub> tags. This change belongs in docling-core.
  4. OCR text. OCR engines give word boxes but no character baselines, so scans need a different method.

@geoHeil geoHeil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 4ca90716963b154a9da48dc1869a4fff025c55ff. Two output defects remain.

  1. _run_prov keeps only the first page of a matched run. In a valid constructed DoclingDocument with H2O on page 1 and a continuation on page 2, the rewrite drops all page-2 provenance. Keep the provenance for each page. This reproduction checks the document model and stage; it is not a full cross-page PDF conversion.
  2. _apply replaces paragraph blocks with top-level InlineGroup nodes. HTML changes two source paragraphs from separate <p> blocks to adjacent <span> elements. The browser loses their paragraph separation. Keep the paragraph blocks.

Local validation: 35 tests pass, and both defects reproduce. Current CI and Docs CI pass. Codecov patch coverage is 88.27930%, but the tests do not detect these defects. The spacing and export question in the author's comment also remains open.

Local make check stops on file-length violations that already exist on base. The other read-only checks pass. I made no source or reference-data changes.

Signed-off-by: Yashika Malhotra <106444881+yashikam19@users.noreply.github.com>
@github-actions github-actions Bot added ai:ci-needs-care AI triage: check CI-safety findings before you approve CI and removed ai:ci-needs-care AI triage: check CI-safety findings before you approve CI ai:review-lgtm AI first review found no blocker or major issue (advisory) labels Oct 22, 2026
@yashikam19

Copy link
Copy Markdown
Contributor Author

Thanks @geoHeil, both fixed in 2aaedddd.

  1. A run now gets one provenance item for each page it is on, with the charspan of its text on that page. New test: a run that continues from page 1 onto page 2 keeps both pages.
  2. A rewritten item now keeps its place and holds the inline group of its runs, as list items already did. Paragraphs stay <p> blocks in HTML (<p><span class='inline-group'>…</span></p>). New test: two paragraphs in a row with scripts export as two <p> blocks.

Both new tests fail on 4ca90716 and pass on the latest commit, so they catch the two defects. Markdown, plain text and chunking keep the same words, and the ParseBench results in my comment above do not change.

In the same commit, the step now skips image input. Before, the PDF pipeline logged a false "recovery failed" warning for every image with the option on.

Two limits that come from docling-core's inline-group serializer, so I left them to the maintainers: the space between runs (H <sub>2</sub> O), and a hyperlink on a paragraph with a script becomes one link per run.

Could you re-review when you have time?

@PeterStaar-IBM

Copy link
Copy Markdown
Member

Hi @yashikam19, thank you for this pull request.

It has a merge conflict with main. Please rebase your branch on the latest main and resolve the conflict:

git fetch upstream
git rebase upstream/main
# resolve the conflicts, then:
git push --force-with-lease

We can continue with the review and CI after that.

…subscript

Signed-off-by: Yashika Malhotra <106444881+yashikam19@users.noreply.github.com>
@github-actions github-actions Bot removed the ai:ci-needs-care AI triage: check CI-safety findings before you approve CI label Nov 3, 2026
@yashikam19

Copy link
Copy Markdown
Contributor Author

Hi @PeterStaar-IBM, I have merged main and resolved the conflicts

@github-actions github-actions Bot added the ai:ci-needs-care AI triage: check CI-safety findings before you approve CI label Nov 3, 2026
@vagenas

vagenas commented Nov 4, 2026

Copy link
Copy Markdown
Member

@yashikam19 this is now unblocked: docling-project/docling-core#693 is released in docling-core 2.106.0, and #3891 is merged and released in docling 2.147.0, so main already requires that core version.

Please merge the latest main and continue with the plan from your earlier comment: let each run keep its own whitespace from the PDF, recreate the ground truth, and add the exact-output test for the H2O line. Until then, I expect the export to lose real spaces, for example E = mc2in 1905.

…subscript

Signed-off-by: Yashika Malhotra <106444881+yashikam19@users.noreply.github.com>
…ipt runs

docling-core 2.106.0 joins inline runs without a separator, so runs must carry their own whitespace. Keep a space beside a script only where the PDF shows a gap of at least MIN_WORD_GAP, since the parser also reports a space where a raised script touches its text.

Signed-off-by: Yashika Malhotra <106444881+yashikam19@users.noreply.github.com>
Each linked run exports as a link of its own, so a linked footnote gave one link for its marker and one for its text. Set the hyperlink on baseline runs only.

Signed-off-by: Yashika Malhotra <106444881+yashikam19@users.noreply.github.com>
@github-actions github-actions Bot added ai:ci-needs-care AI triage: check CI-safety findings before you approve CI and removed ai:ci-needs-care AI triage: check CI-safety findings before you approve CI labels Nov 5, 2026
@yashikam19

yashikam19 commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor Author

@vagenas @PeterStaar-IBM @geoHeil, this is ready for re-review. I merged main and pushed two fixes: 311ffb61 (spacing) and ec2d94e4 (links).

Spacing

With docling-core 2.106.0, each run now carries its own whitespace. A space beside a script stays only where the PDF shows a gap of at least 0.1 of the font size.

Export Previous head, with docling-core 2.104.0 Now
HTML H <sub>2</sub> O H<sub>2</sub>O
HTML 21 <sup>st</sup> of June 21<sup>st</sup> of June
HTML E = mc <sup>2</sup> in 1905. E = mc<sup>2</sup> in 1905.
Markdown H 2 O H2O
Markdown 21 st of June 21st of June

The false spaces come from docling-parse, not from the serializers. It starts a new word when a character's baseline moves far enough, and it joins words with a space, so mc² gives mc 2 even when the characters touch. With the option off, the output is the same as on main and keeps these spaces. With the option on, this PR removes them from the runs.

I chose the threshold from 633 spaces beside scripts in 87 labelled ParseBench PDFs. At 0.1, 397 spaces are removed, and all the spaces that are real characters in the PDF stay.

Links

A linked footnote now has one link, because only baseline runs get the hyperlink: 1[https://arxiv.org/](url).

Ground truth

I regenerated the output for the documents from the earlier table, with the option on:

Document main, Markdown This branch, HTML This branch, Markdown
Word export (fixture) mc 2, H2O, 21 st mc<sup>2</sup>, H<sub>2</sub>O, 21<sup>st</sup> mc2, H2O, 21st
elsevier-00.pdf, authors Duarte a,b,c,* , Duarte <sup>a,b,c,*</sup>, Duarte a,b,c,*,
2206.01062.pdf, footnote [1 https://…](url) <sup>1</sup><a href="url">https://…</a> 1[https://…](url)
normal_4pages.pdf, Korean note markers 상해 1) 나 상해<sup>1)</sup>나 상해1)나

More HTML output from the ParseBench PDFs:

PDF This branch, HTML
text_simple__solvay.pdf cutting CO<sub>2</sub> emissions by 90%
text_simple__meripilus.pdf Ve = 97 µm<sup>3</sup>. Cistidios
text_simple__numberedline.pdf 7.6-1,040 µg g<sup>-1</sup>, median
text_multicolumns__sbi.pdf as of 31<sup>st</sup> March 2022
text_multicolumns__nurse.pdf of complexity<sup>(10)</sup>. The
text_multilang__japanese3.pdf 表面積25mm<sup>2</sup>(5mm×5mm)
text_multilang__turkish2.pdf etmektedir<sup>7</sup>. Bu

The e2e ground truth in tests/data/pdf/groundtruth/ runs with the option off, which is the default, so this PR adds or changes no files there. With the option off, the Markdown, HTML and plain text of the four documents in the first table are identical to main. On my machine, regenerating tests/test_e2e_conversion.py changes 21 files, but a clean copy of main gives byte-identical files, so I did not commit them.

ParseBench results

I scored the HTML export of the pushed code with ParseBench's FormattingRule, on the 87 PDFs that have superscript or subscript labels. OCR was off.

Labels Option off Option on
Superscript, with a text layer (265) 0 241
Subscript, with a text layer (6) 1 6
Total with a text layer (271 labels, 60 PDFs) 1 247 (91%)
Scans or image-only pages (60 labels, 26 PDFs) 0 0

Limits and a question

  1. Markdown (please confirm): Runs have one text value, so a removed space is removed from every export. Markdown has no script mark, so a marker set close to its text joins it: 2 e.g. AAPL becomes 2e.g. AAPL. I followed the HTML output requested above. Is this acceptable? A complete fix would be in the docling-core Markdown serializer, for example an option to write <sup> and <sub>.
  2. Visible gaps: A space stays where the PDF has a gap above the threshold, for example Duarte <sup>a,b,c,*</sup> (gap 0.17).
  3. Links: The marker is no longer part of the link. A script in the middle of linked text still splits the link: <a>CO</a><sub>2</sub> <a>supply agreement</a>. Merging adjacent runs with the same link in docling-core would fix both.
  4. pypdfium2 backend: A script can have spaces inside it, such as <sup>a , b</sup>. This backend gives a raised script its own cell, and on the first line of a text block that cell can stick out of the block and become its own text item. It then has no line to be measured against, so it is not marked, such as the 2 of mc2 in the fixture.

Validation

  • tests/test_script_position.py and tests/test_script_position_pdf.py: 45 passed, with exact Markdown and HTML assertions for the H2O line, the 21st line and a linked footnote.
  • make validate passes.
  • I read all 41 scripts from the fixture, 2206.01062.pdf, elsevier-00.pdf and normal_4pages.pdf.
  • Not done: I did not run the full test suite locally, I did not read all 353 scripts from the 87 PDFs, and I did not test with OCR or table structure.

@yashikam19

Copy link
Copy Markdown
Contributor Author

The CI failures on this PR come from main, not from this PR. On a clean clone of main (94ce0211), both of these fail:

  • prek run max-lines --all-files: tests/test_backend_asciidoc.py has 1501 lines, and the limit is 1500.
  • tests/test_backend_asciidoc.py::test_trailing_plus_is_a_hard_line_break: 'A ' != 'A'.

Both appear to come from #5175, which added that test. This PR does not touch AsciiDoc. On the PR head (ec2d94e4) without the merge, the 77 tests in that file pass.

In the run-tests-core log I checked, this is the only failure, with 4227 tests passed. run-tests-ml (pdf-model) passes on Python 3.10 to 3.14.

I can open a small fix for main if that helps. The test's expected value looks out of date after the whitespace contract in #3891, and the file needs to lose one line.

@geoHeil

geoHeil commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

can you send a fix and stack your branch on top with i.e. stax or gh-stack ?

@PeterStaar-IBM

Copy link
Copy Markdown
Member

@yashikam19 Yes, please provide the fix and notify us or follow the suggestion of @geoHeil . Either option is good!

geoHeil
geoHeil previously requested changes Nov 5, 2026

@geoHeil geoHeil left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed ec2d94e47924192f74aec43be79a1e99ef5face1 against PR base e3681a613e1be0dd3019bba61b4dc10b92e6e776.

The previous feature blockers are fixed. I found no new feature blocker. **Not ready to merge yet: required CI still fails. Fix it please as discussed

@yashikam19

Copy link
Copy Markdown
Contributor Author

@geoHeil @PeterStaar-IBM the fix for main is in #5186

…subscript

Signed-off-by: Yashika Malhotra <106444881+yashikam19@users.noreply.github.com>
@github-actions github-actions Bot added ai:ci-needs-care AI triage: check CI-safety findings before you approve CI and removed ai:ci-needs-care AI triage: check CI-safety findings before you approve CI labels Nov 5, 2026

@vagenas vagenas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @yashikam19.

On your Markdown question: 2e.g. AAPL in Markdown is fine for this PR; the script mark stays in the document, and the topic of the Markdown export is covered in docling-project/docling-core#661.

@vagenas
vagenas requested a review from geoHeil November 5, 2026 10:09
vagenas

This comment was marked as duplicate.

@PeterStaar-IBM PeterStaar-IBM left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@PeterStaar-IBM
PeterStaar-IBM dismissed geoHeil’s stale review November 5, 2026 12:23

forgot to dismiss the review

@PeterStaar-IBM
PeterStaar-IBM merged commit 3bbd3fa into docling-project:main Nov 5, 2026
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai:ci-needs-care AI triage: check CI-safety findings before you approve CI enhancement New feature or request pdf parsing PDF issue related to docling-parse pdf PDF issue (except docling-parse) reading_order

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhancement Request: Ensure that subscript and superscript content is maintained.

5 participants