Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(theme-default): headings anchor should not be selectable #973

Merged
merged 2 commits into from Jul 11, 2022

Conversation

ramiy
Copy link
Contributor

@ramiy ramiy commented Jun 30, 2022

Description

Currently, when users select the page content to copy & paste the text, it also selects the headings # anchors.

Steps to recreate

  • Select the page content with your mouse or using keyboard (CRTL + A)
  • Copy the text
  • Paste it to an external document

You will see that all content headings (H1-H6) has a # prefix.

Solution

This PR removes the headings anchor-selection by defining the anchors as not selectable (user-select: none;).

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.

None yet

2 participants