Skip to content

fix(markdown): escape referenced figures' filepaths and ensure cross-platform path handling (Windows / POSIX) - #698

Open
the-zucc wants to merge 5 commits into
docling-project:mainfrom
the-zucc:main
Open

fix(markdown): escape referenced figures' filepaths and ensure cross-platform path handling (Windows / POSIX)#698
the-zucc wants to merge 5 commits into
docling-project:mainfrom
the-zucc:main

Conversation

@the-zucc

Copy link
Copy Markdown

#182 caused a regression in which the behavior introduced in #122 was removed.

I'm therefore proposing that we re-add the change, slightly modified for both POSIX and Windows path support.

One edge-case identified is the obvious case where the destination path is a filename containing a backslash. I've mentioned the limitation in the docstring.

@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

DCO Check Passed

Thanks @the-zucc, all your commits are properly signed off. 🎉

@mergify

mergify Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Merge Protections

🔴 1 of 2 protections blocking · waiting on 👀 reviews

Protection Waiting on
🔴 Require two reviewer for test updates 👀 reviews
🟢 Enforce conventional commit

🔴 Require two reviewer for test updates

Waiting for

  • #approved-reviews-by >= 2
This rule is failing.

When test data is updated, we require two reviewers

  • #approved-reviews-by >= 2

Show 1 satisfied protection

🟢 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)(?:\(.+\))?(!)?:

I, Laurier Lavoie-Giasson <laurier@laurier.dev>, hereby add my Signed-off-by to this commit: 513a8d5

Signed-off-by: Laurier Lavoie-Giasson <laurier@laurier.dev>
@the-zucc the-zucc changed the title fix: escape filepaths and ensure proper path handling (Windows / POSIX) fix: escape referenced figures' filepaths and ensure cross-platform path handling (Windows / POSIX) Jul 30, 2026
Laurier Lavoie-Giasson added 2 commits July 30, 2026 00:27
I, Laurier Lavoie-Giasson <laurier@laurier.dev>, hereby add my Signed-off-by to this commit: 513a8d5
I, Laurier Lavoie-Giasson <laurier@laurier.dev>, hereby add my Signed-off-by to this commit: b5225cd

Signed-off-by: Laurier Lavoie-Giasson <laurier@laurier.dev>
@codecov

codecov Bot commented Jul 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@the-zucc the-zucc changed the title fix: escape referenced figures' filepaths and ensure cross-platform path handling (Windows / POSIX) fix(markdown): escape referenced figures' filepaths and ensure cross-platform path handling (Windows / POSIX) Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant