Skip to content

Instantly share code, notes, and snippets.

@raghav4
Created October 1, 2019 07:43
Show Gist options
  • Save raghav4/1250aa9c613de5a5c3cfe7fb7d3605d2 to your computer and use it in GitHub Desktop.
Save raghav4/1250aa9c613de5a5c3cfe7fb7d3605d2 to your computer and use it in GitHub Desktop.
Printing GitHub markdowns
document.querySelector('#readme').setAttribute('style', 'position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; background-color: white')
document.querySelector('body').appendChild(document.querySelector('#readme'))
window.print()
@raghav4
Copy link
Author

raghav4 commented Oct 1, 2019

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