Skip to content

feat: add URL resolution for root-relative markdown links - #2

Merged
notz merged 2 commits into
mainfrom
convert-relative-urls
Aug 20, 2026
Merged

feat: add URL resolution for root-relative markdown links#2
notz merged 2 commits into
mainfrom
convert-relative-urls

Conversation

@notz

@notz notz commented Aug 20, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adds post-processing to Outline-extracted Markdown so that root-relative link/image URLs (e.g., /api/attachments.redirect?...) are rewritten into absolute URLs against the configured Outline workspace, improving link usability when content is consumed outside Outline.

Changes:

  • Apply relative-URL resolution to cleaned document Markdown before returning it.
  • Introduce _resolve_relative_urls() to rewrite root-relative Markdown link/image targets to absolute workspace URLs.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread datasources/utils/outline_extractor.py Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@notz
notz merged commit 87c767f into main Aug 20, 2026
1 check passed
@notz
notz deleted the convert-relative-urls branch August 20, 2026 08:32
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.

2 participants