Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
eb2dd24d
Commit
eb2dd24d
authored
Dec 01, 2013
by
Rüdiger Sonderfeld
Committed by
Lars Magne Ingebrigtsen
Dec 01, 2013
Browse files
(shr-tag-audio): Add support for <audio> tag.
parent
177948a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
lisp/ChangeLog
lisp/ChangeLog
+1
-0
lisp/net/shr.el
lisp/net/shr.el
+6
-0
No files found.
lisp/ChangeLog
View file @
eb2dd24d
...
...
@@ -2,6 +2,7 @@
* net/shr.el (shr-tag-video): Display content for video if no
poster is available.
(shr-tag-audio): Add support for <audio> tag.
* net/eww.el (eww-text-input-types): : New const.
(eww-process-text-input): Treat input types in
...
...
lisp/net/shr.el
View file @
eb2dd24d
...
...
@@ -1105,6 +1105,12 @@ ones, in case fg and bg are nil."
(
shr-insert
" [video] "
))
(
shr-urlify
start
(
shr-expand-url
url
))))
(
defun
shr-tag-audio
(
cont
)
(
let
((
url
(
cdr
(
assq
:src
cont
)))
(
start
(
point
)))
(
shr-insert
" [audio] "
)
(
shr-urlify
start
(
shr-expand-url
url
))))
(
defun
shr-tag-img
(
cont
&optional
url
)
(
when
(
or
url
(
and
cont
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment