Skip to content

Remove anchor underline sooner - #153

Merged
cyanzhong merged 1 commit into
mainfrom
develop
Jul 26, 2026
Merged

Remove anchor underline sooner#153
cyanzhong merged 1 commit into
mainfrom
develop

Conversation

@cyanzhong

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 addresses a WebKit rendering quirk where clicking a link can leave the :hover underline state visually “stuck” after focus is stolen, by temporarily suppressing link underlines after a click until the pointer leaves the link.

Changes:

  • Add a .suppress-underline CSS class to disable link underlines in the rendered markdown preview.
  • Update the preview pane click handling to apply/remove the suppression class on anchor clicks.
  • Regenerate the lite distribution bundle to include the updated behavior and styles.

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 1 comment.

File Description
styles/main.css Adds a CSS rule to suppress link underlines when a class is applied.
src/view.ts Adds anchor-click handling to toggle the suppression class and wires it into the preview click listener.
dist/lite/markedit-preview.js Updates the built lite bundle with the new CSS and click-handling logic.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/view.ts

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 2 out of 4 changed files in this pull request and generated no new comments.

@cyanzhong
cyanzhong merged commit a043aac into main Jul 26, 2026
2 checks 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.

2 participants