Skip to content

Instantly share code, notes, and snippets.

@glebm
Last active September 26, 2017 11:17
Show Gist options
  • Save glebm/5b6c4517322193fbc51090dc3b57a44a to your computer and use it in GitHub Desktop.
Save glebm/5b6c4517322193fbc51090dc3b57a44a to your computer and use it in GitHub Desktop.
Render whitespace on GitHub
@leonklingele
Copy link

@glebm awesome! While this displays the code as expected, copy and pasting code also copies the interpunct character.
Is there some way to prevent this?

@glebm
Copy link
Author

glebm commented Sep 9, 2017

@leonklingele Noticed this myself as well. This is fixed now, along with re-rendering on pjax update and diff support in v1.2.0!

@gregid
Copy link

gregid commented Sep 13, 2017

Thanks for the script.

Works fine with Greasemonkey, unfortunately doesn't work with Violentmonkey (haven't checked other script managers)

@glebm
Copy link
Author

glebm commented Sep 14, 2017

@gregid It doesn't work with Violentmonkey only on Firefox. This is due to a Firefox bug: violentmonkey/violentmonkey#173

@david-trejo-ck
Copy link

david-trejo-ck commented Sep 14, 2017

I just used this at work! It worked great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment