]> git.eshelyaron.com Git - emacs.git/commit
Rework how shr sets <span id='foo'> targets to make it more reliable
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 19 Dec 2021 12:44:21 +0000 (13:44 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 19 Dec 2021 12:44:21 +0000 (13:44 +0100)
commit7904cae492062ac70ae1539be5b21c5274dcdf46
tree9fa5bdd4fe71a12fe8e9380543db46aa0c871e67
parentae289486d039a443f74420f091a674a19ec9f378
Rework how shr sets <span id='foo'> targets to make it more reliable

* lisp/net/eww.el (eww-display-html): The target is now a list.
* lisp/net/shr.el (shr--link-targets): New variable.
(shr-insert-document): Set the targets.
(shr-descend): Save targets and apply them later.
(shr-ensure-paragraph): Remove hack to avoid filling from removing
targets.
(shr-tag-a): Save targets for later.
(shr-render-td-1): Bind and set targets (bug#52512).
lisp/net/eww.el
lisp/net/shr.el