Questions tagged [shr]
10 questions
8
votes
1 answer
How to prevent shr from making network connections
Recent versions of Emacs have a really good renderer for HTML written entirely in Elisp. This renderer (shr) can be used for displaying HTML emails, documentation, etc. However, it seems that shr retrieves remote resources referenced in HTML…

tmalsburg
- 2,540
- 1
- 14
- 29
3
votes
1 answer
How can I install eww or shr in Emacs 23?
I am beginner using Emacs 23.4, and I wanted to try a web browser package. From Emacs wiki, I found eww. But when Emacs starts I get from *Warnings*:
File error: Cannot open load file, shr
I get the same thing when I do M-x load-library RET…

Nicolas P
- 53
- 3
3
votes
0 answers
Why is EWW unable to place images into tables
Web pages are rendered with the simple html renderer shr in the Emacs webbrowser EWW. Pitingly, images in tables are displayed below the tables.
The source code of shr contains the following comment about that:
;; Finally, insert all the images…

Tobias
- 32,569
- 1
- 34
- 75
2
votes
0 answers
shr: render local images
I'd like to use the internal shr "package" of emacs to display local images. The thing is that I can display online images but not local ones, that's quite strange isn't it!
Reproduce:
Put in a random buffer this file:

tobiasBora
- 405
- 2
- 12
2
votes
1 answer
How can I generate a buffer and render html in it?
I want to make a buffer in a new window (but not pop to it) insert HTML code in it, and render its content with shr-render-*. Yes, an HTML preview window, let me know if you know of a (simple) existing implementation ; I tried various strategies,…

yPhil
- 963
- 5
- 22
1
vote
0 answers
shr/filling: don't split inline latex in html
my package mastodon.el uses shr-render-region to render posts, which fills text at shr-width.
if the post contains inline latex, shr's filling will split up the latex so that it will not be possible to render it in emacs subsequently.
is it possible…

user27075
- 488
- 3
- 11
1
vote
1 answer
Enabling shr-external-rendering-functions Variable in EWW
Began using Emacs eww nowadays, but now seeking to adapt it better for Html websites.
That way some user said to "buffer-locally setting the variable shr-external-rendering-functions", as of What EWW Emacs Web Brower Would Be Used For
But don't know…

Vincent33
- 23
- 5
0
votes
1 answer
possible bug: shr-render-buffer is not preserving URLs
Running shr-render-buffer renders the HTML accurately using appropriate faces for different element types and underlines links but clicking on any of the links produces the message:
No link under point.
Any suggestions?
GNU Emacs 28.2 (build 2,…

StackExchanger
- 133
- 6
0
votes
1 answer
avoid unwanted newlines after running shr-render-region
i have a small amounts of text in html that i want to process.
currently they are rendered with shr-render-region so that all html is out of the way, then copied and processed.
this works fine except for the fact that the rendering inserts newlines…

user27075
- 488
- 3
- 11
0
votes
1 answer
Remove image & link related keybindings in eww
I'm using xah-fly-keys which provides a few custom keys for easy navigation.
u = backward-word
o = forward-word
i = previous-line
...
Unfortunately, my keybindings are overshadowed when point is on a visible/hidden link and sometimes even text.
Is…

StackUnleased
- 3
- 2