Skip to content

Support Obsidian-style markdown doc link aliases - #3363

Merged
Jinwoo-H merged 3 commits into
mainfrom
nwparker/issue-3040-markdown-reader-backlinks
May 30, 2026
Merged

Jinwoo-H merged 3 commits into
mainfrom
nwparker/issue-3040-markdown-reader-backlinks

Conversation

@nwparker

@nwparker nwparker commented May 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Extend Orca's existing markdown doc-link parser to support Obsidian-style aliases such as [[docs/STYLEGUIDE|Style Guide]].
  • Resolve [[note#Heading]] against the note document first, then open preview at the heading anchor.
  • Keep source decorations, rich markdown serialization, completions, and markdown preview behavior aligned with the shared parser.

Scope

This is a narrow slice for #3040. It does not add a full backlink/sidebar graph; that still needs a workspace content index that can scan local and SSH/runtime worktrees without blocking the renderer.

Validation

  • pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/editor/markdown-doc-links.test.ts src/renderer/src/components/editor/markdown-doc-completions.test.ts src/renderer/src/components/editor/monaco-markdown-doc-link-decorations.test.ts src/renderer/src/components/editor/markdown-round-trip.test.ts src/renderer/src/components/editor/MarkdownPreview.test.ts src/renderer/src/components/editor/rich-markdown-commands.test.ts src/renderer/src/components/editor/RichMarkdownSlashMenu.test.tsx
  • pnpm exec oxlint src/renderer/src/components/editor/MarkdownPreview.tsx src/renderer/src/components/editor/markdown-doc-completions.ts src/renderer/src/components/editor/markdown-doc-completions.test.ts src/renderer/src/components/editor/markdown-doc-links.ts src/renderer/src/components/editor/markdown-doc-links.test.ts src/renderer/src/components/editor/markdown-round-trip.test.ts src/renderer/src/components/editor/monaco-markdown-doc-link-decorations.test.ts src/renderer/src/components/editor/raw-markdown-html.ts src/renderer/src/components/editor/rich-markdown-doc-link.ts src/renderer/src/components/editor/useMarkdownDocuments.ts
  • pnpm run typecheck:web
  • git diff --check HEAD~1..HEAD
  • git merge-tree --write-tree origin/main HEAD

Electron Evidence

  • CDP attached to dev instance issue-3040-markdown-reader-backlinks.
  • Preview rendered [[docs/STYLEGUIDE|Style Guide Alias]] as a resolved markdown-doc-link with visible text Style Guide Alias and href #orca-doc-link=docs%2FSTYLEGUIDE.
  • Screenshot captured locally at /tmp/orca-issue-3040-evidence/markdown-alias-preview.png.

Risk assessment

Risk: MEDIUM

Historic risk metadata backfill based on the existing risk:medium label.

Risk: medium

Historic risk metadata backfill based on the existing risk:medium label.

Jinwoo-H and others added 2 commits May 30, 2026 02:55
…arkdown-reader-backlinks

# Conflicts:
#	src/renderer/src/components/editor/MarkdownPreview.tsx
@Jinwoo-H
Jinwoo-H merged commit dc1f7f3 into main May 30, 2026
1 check passed
@Jinwoo-H
Jinwoo-H deleted the nwparker/issue-3040-markdown-reader-backlinks branch May 30, 2026 18:55
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* Support Obsidian-style markdown doc link aliases

* Fix markdown doc link heading anchors

Co-authored-by: Orca <[email protected]>

---------

Co-authored-by: Jinwoo-H <[email protected]>
Co-authored-by: Orca <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:medium Medium risk change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants