Skip to content

Integration#5

Open
joshribakoff wants to merge 7 commits intomainfrom
integration
Open

Integration#5
joshribakoff wants to merge 7 commits intomainfrom
integration

Conversation

@joshribakoff
Copy link
Owner

No description provided.

joshribakoff and others added 7 commits December 14, 2025 21:49
Wikipedia-style magic links with build-time resolution for markdown.

Features:
- Link resolver with priority: exact ID → aliases → slug → unresolved
- Remark plugin supporting [:id] and [[id]] syntax
- Fallback IDs: [:id1|:id2] tries each until one resolves
- Custom display text: [[id|Display Text]]
- Graceful degradation: unresolved links become plain text
- Placeholder support with custom CSS class
- Link checker for detecting broken links in content

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Fuzzy matching and auto-redirect for 404 pages.

Features:
- Levenshtein distance-based similarity matching
- Exact slug matcher for content that moved sections
- Token overlap matcher for partial matches
- Composite matcher combining multiple strategies
- findMatches() and shouldAutoRedirect() functions
- Drop-in NotFound.astro component for Astro sites
- Default CSS styling with CSS variables for theming

Matching behavior:
- Prioritizes exact slug matches (content moved to different section)
- Falls back to Levenshtein + token overlap
- Auto-redirects on single match or high-confidence clear winner
- Shows suggestions list when multiple good matches exist

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Remove complex target registry, link resolver, and link checker.
The plugin now just transforms [[id]] syntax using a urlBuilder callback.

- Delete link-resolver.ts, link-checker.ts, types.ts
- Simplify remark-magic-links.ts to ~100 lines
- Update tests with synthetic data
- Update README

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
joshribakoff added a commit that referenced this pull request Dec 21, 2025
Implement @sailkit/teleport vim-style keyboard navigation
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