Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Copy button incorrectly copies to clipboard #191

Closed
mtn opened this issue Jun 20, 2018 · 2 comments
Closed

Copy button incorrectly copies to clipboard #191

mtn opened this issue Jun 20, 2018 · 2 comments

Comments

@mtn
Copy link
Contributor

mtn commented Jun 20, 2018

Hi!

This might (and seems likely to) be a mdbook issue, rather than something to do with this project. However, since I haven't worked with mdbook, I figured it'd be better to make the issue here first in case I'm just misunderstanding intended behavior.

When I use the copy to clipboard button in the first example here, somehow the code copies incorrectly (there's a main defined). Similarly, the result of copying to clipboard for the second example is different from what I expected.

I haven't dug into any of the code, except for rebuilding the book locally to make sure it wasn't something that would just go away. Maybe this a bug?

Edit: Having tried a minimal example, I'm pretty sure this has nothing to do with intermezzOS. I'll leave this open in case I'm just confusing something, for now.

@steveklabnik
Copy link
Member

Ahh interesting. Yes, it's an mdbook issue, and a subtle one. Would you like to open a bug upstream, or should I?

@mtn
Copy link
Contributor Author

mtn commented Jun 20, 2018

Thanks -- I opened an issue upstream.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants