If you are using Firefox, you can also use the Add-on &quot;HackTheWeb&quot; [1] that automates the suggestion by moron4hire.<p>Right-click on the page, and select &quot;HackTheWeb&quot;.  Whatever page element you hover your pointer over will be given a red border, and then you use hotkeys to perform actions.<p>To do the same thing as the example above, it would be: right-click on page, select HackTheWeb, point mouse at the content you want, hit &quot;w&quot; (widen) until you have the whole section you want, and then &quot;i&quot; (isolate) to remove everything else.  From there you&#x27;re ready to print to PDF.<p>For some reason I had to be viewing the actual README.md file, not looking at GitHub&#x27;s auto-readme-display.<p>HackTheWeb also lets you view the element&#x27;s javascript, show the xpath of element, and convert text to black on white (very useful for content whose text and background colors don&#x27;t work well together).<p>I&#x27;ve used it for several years, and wouldn&#x27;t want to give it up.  It&#x27;s based on the old Aardvark add-on that did the same kind of thing, but Aardvark wasn&#x27;t updated as Firefox matured and eventually no longer worked.<p>[1] <a href="https:&#x2F;&#x2F;www.google.com&#x2F;url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;cad=rja&amp;uact=8&amp;ved=0ahUKEwjl3vCB5aLKAhXGtBoKHRBTDrIQFggdMAA&amp;url=https%3A%2F%2Faddons.mozilla.org%2Fen-US%2Ffirefox%2Faddon%2Fhack-the-web%2F&amp;usg=AFQjCNGrYsAQqb0NXBIAENCELikb3TP1tg&amp;sig2=VJ31G1EsDqRMIHqathCNXA" rel="nofollow">https:&#x2F;&#x2F;www.google.com&#x2F;url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;c...</a>