Skip to content

Latest commit

 

History

History
12 lines (11 loc) · 752 Bytes

print readme file from github.md

File metadata and controls

12 lines (11 loc) · 752 Bytes

Open the required README file (or any other markdown file) in the browser

Example: https://github.com/SayantanRC/DEREQ/blob/master/README.md

Paste the following code

  1. Open developer console (Firefox -> F12)
  2. Click "Console" tab
  3. In Firefox, type allow pasting. Do not press enter. Press backspace and erase allow pasting.
  4. Paste the following content and press Enter key:

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()

Reference