You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(images): write note-relative image links in sources pages
Short-doc source pages live at wiki/sources/<doc>.md but embedded
their images with wiki-root-relative links
(sources/images/<doc>/file.png). Markdown renderers resolve links
relative to the containing file — Obsidian, GitHub, VS Code — so
every image resolved to the non-existent
wiki/sources/sources/images/... and rendered broken.
- New md_image_ref() helper emits note-relative images/<doc>/...
links, used by the three .md-visible writers
(convert_pdf_with_images, extract_base64_images,
copy_relative_images).
- Long-doc JSON page metadata keeps wiki-root-relative paths: it is
internal, consumed by get_wiki_page_content/read_wiki_image against
the wiki root. Now documented explicitly in the docstrings.
- read_wiki_image() retries note-relative paths under sources/, so
agents can pass image paths verbatim as seen in either surface.
- Query/skill-factory prompts and the openkb skill's wiki-schema.md
updated to describe both path forms.
Existing KBs keep their old-style links (the read_wiki_image fallback
does not cover them in renderers); a migration helper for already
ingested sources pages is left as a follow-up.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
0 commit comments