shr: add shr-tag-title
authorJulien Danjou <julien@danjou.info>
Wed, 24 Nov 2010 17:22:50 +0000 (18:22 +0100)
committerJulien Danjou <julien@danjou.info>
Wed, 24 Nov 2010 17:22:50 +0000 (18:22 +0100)
Signed-off-by: Julien Danjou <julien@danjou.info>
lisp/ChangeLog
lisp/shr.el

index 43df18a..aaffff2 100644 (file)
@@ -3,6 +3,7 @@
        * shr.el (shr-insert-color-overlay): Replace deprecated syntax.
        (shr-tag-body): Add background support.
        (shr-descend): Add background support.
+       (shr-tag-title): Add.
 
        * shr-color.el (shr-color-visible): Really return original background
        if fixed.
index e988d2f..73649a2 100644 (file)
@@ -745,6 +745,9 @@ text will be inserted at start."
   (shr-ensure-newline)
   (insert (make-string shr-width shr-hr-line) "\n"))
 
+(defun shr-tag-title (cont)
+  (shr-heading cont 'bold 'underline))
+
 (defun shr-tag-font (cont)
   (let ((start (point))
         (color (cdr (assq :color cont))))