Skip to main content
6 votes
Accepted

Enabling shr-external-rendering-functions Variable in EWW

If you want to generally change/add the rendering of nodes of a certain tag type you just add an association from the tag as symbol to the rendering function in the list shr-external-rendering-...
Tobias's user avatar
  • 33.7k
3 votes
Accepted

How can I generate a buffer and render html in it?

OK, I found out : (with-output-to-temp-buffer "foo" (pop-to-buffer "foo") (insert "<h1>plip</h1>") (shr-render-region (point-min) (point-max)))
yPhil's user avatar
  • 993
1 vote

avoid unwanted newlines after running shr-render-region

You can prevent shr-fill-lines from having any effect by overwriting it and make it return nil as follows: (defun shr-fill-lines (_ _) nil) (Then you could also just use shr-render-buffer)
dalanicolai's user avatar
  • 7,985

Only top scored, non community-wiki answers of a minimum length are eligible