Skip to content

Fix clickable links in canvas previews - #136

Open
Luna Qiu (lunaqiu) wants to merge 1 commit into
microsoft:mainfrom
lunaqiu:fix/clickable-note-links
Open

Fix clickable links in canvas previews#136
Luna Qiu (lunaqiu) wants to merge 1 commit into
microsoft:mainfrom
lunaqiu:fix/clickable-note-links

Conversation

@lunaqiu

Copy link
Copy Markdown
Contributor

Summary

  • allow plain primary-click activation for links in read-only and drag-only Milkdown previews
  • keep Ctrl/Cmd + click for editable surfaces while preserving unsafe URL validation
  • restore pointer events for links inside non-interactive Note bodies

Fixes #135

Testing

  • pnpm typecheck
  • pnpm format
  • pnpm lint:fix (0 errors)
  • pnpm --filter @huabu/web test -- src/components/Milkdown/__tests__/previewAccessibility.test.tsx src/components/Milkdown/__tests__/blockCommands.test.ts (67 passed)

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.

Canvas Note links are not clickable

1 participant