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

Problem properly selecting parts of code chunks (in browser) #16

Closed
RemPsyc opened this issue Nov 3, 2019 · 2 comments
Closed

Problem properly selecting parts of code chunks (in browser) #16

RemPsyc opened this issue Nov 3, 2019 · 2 comments

Comments

@RemPsyc
Copy link

@RemPsyc RemPsyc commented Nov 3, 2019

I've made a detailed post (with screenshots and sample code) on stackoverflow, and someone commented that he could confirm the problem, thought it was a bug, and that I should post it here. But basically I'm not able to select part of text from code chunks using common browsers such as Chrome, Edge, or Explorer, though I don't have this issue when not using prettydoc.

@RemPsyc RemPsyc changed the title Problem properly selecting code (in browser) in textbox Problem properly selecting parts of code chunks (in browser) Nov 3, 2019
@yixuan
Copy link
Owner

@yixuan yixuan commented Nov 4, 2019

Yeah, I can reproduce this. This is the first time I realize this issue as I typically use Firefox, which sees no problem in selecting the code.

Let me take a look and see where it comes from.

@yixuan
Copy link
Owner

@yixuan yixuan commented Nov 22, 2019

I believe this is related to jgm/pandoc#4278. The problem is that some versions of Pandoc add a pointer-events: none; attribute to the code lines, making the text unselectable.

I have made a patch to prettydoc and the new version is on the way to CRAN.

@yixuan yixuan closed this Nov 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.