nex_shift/src-tauri/src
mula.liu 9950607cd4 fix(markdown): keep images when a document with relative figures is converted
Same class of bug as the DOCX one, different cause. A Markdown image is stored as
a path, so Pandoc has to open the file to embed it - and it resolves that path
against its own working directory, which for a running Shift is nowhere near the
document. 智飞空地一体化低空应用平台技术方案.md references images/system-architecture.png
and images/production-deployment-topology.png; both came back as "Could not fetch
resource", and Pandoc replaced each figure with its alt text. The DOCX was 22 KB
with no word/media entry at all.

Passing --resource-path of the source's own folder fixes DOCX, RTF and HTML in one
line. It is additive rather than a replacement: Pandoc still searches the working
directory too, so a figure that resolved before still resolves - verified with two
images of the same relative name in two different folders, both of which landed in
the output.

md -> pdf already worked, because Pandoc leaves the path untouched there and hands
the HTML to the renderer with a base URL pointing at the document's folder; only
the routes where Pandoc must read the bytes itself were affected. md -> html was
the quieter case: --self-contained promises one portable file, and without the
figures inlined the single HTML opened as a broken image icon.

keeps_markdown_images_when_converting_to_word pins docx and rtf. It fails against
the previous build with "docx ... lost the picture", and the RTF check reads the
pngblip marker rather than assuming a zip.
2026-10-26 15:43:59 +08:00
..
autostart.rs 修复bug 2026-10-25 12:24:05 +08:00
capture.rs release: 0.1.1 — update channel, settings/UI trims, macOS + Windows x64 only 2026-10-26 03:06:46 +08:00
drag_bridge.rs 修复bug 2026-10-25 12:24:05 +08:00
editor.rs 修复bug 2026-10-25 12:24:05 +08:00
files.rs fix(markdown): keep images when a document with relative figures is converted 2026-10-26 15:43:59 +08:00
history.rs release: 0.1.3 — the Recent list survives an upgrade 2026-10-26 04:02:31 +08:00
hotkeys.rs 修复bug 2026-10-25 12:24:05 +08:00
lib.rs release: 0.1.3 — the Recent list survives an upgrade 2026-10-26 04:02:31 +08:00
locale.rs release: 0.1.1 — update channel, settings/UI trims, macOS + Windows x64 only 2026-10-26 03:06:46 +08:00
main.rs baseline: capture workspace state (bug fixes in progress) 2026-10-21 08:54:54 +08:00
markdown.rs fix(docx): keep figures when a DOCX is printed to PDF 2026-10-26 14:50:52 +08:00
models.rs release: 0.1.1 — update channel, settings/UI trims, macOS + Windows x64 only 2026-10-26 03:06:46 +08:00
office.rs fix(docx): keep figures when a DOCX is printed to PDF 2026-10-26 14:50:52 +08:00
pdf.rs 修复bug 2026-10-25 12:24:05 +08:00
process.rs 修复bug 2026-10-25 12:24:05 +08:00
recording.rs release: 0.1.1 — update channel, settings/UI trims, macOS + Windows x64 only 2026-10-26 03:06:46 +08:00
result_card.rs release: 0.1.1 — update channel, settings/UI trims, macOS + Windows x64 only 2026-10-26 03:06:46 +08:00
runtime.rs fix(docx): keep figures when a DOCX is printed to PDF 2026-10-26 14:50:52 +08:00
settings.rs release: 0.1.1 — update channel, settings/UI trims, macOS + Windows x64 only 2026-10-26 03:06:46 +08:00
share.rs release: 0.1.1 — update channel, settings/UI trims, macOS + Windows x64 only 2026-10-26 03:06:46 +08:00
update.rs build: sign macOS ad-hoc so other machines can open the app 2026-10-26 09:44:53 +08:00