Skip to content

Instantly share code, notes, and snippets.

@DurandA
Forked from beevelop/gitprint.js
Created September 6, 2023 07:29
Show Gist options
  • Save DurandA/bc3556d877b58f8d04bb6a002b66cf0c to your computer and use it in GitHub Desktop.
Save DurandA/bc3556d877b58f8d04bb6a002b66cf0c to your computer and use it in GitHub Desktop.
Print GitHub markdown files
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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment