changeset 583:d4831b3672f8 draft

Add some html5 elements
author HIROSE Yuuji <yuuji@gentei.org>
date Thu, 01 Jul 2021 07:00:05 +0900
parents f4c2dca86202
children 907de32064c9
files yahtml.el
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/yahtml.el	Sat Feb 08 18:31:52 2020 +0900
+++ b/yahtml.el	Thu Jul 01 07:00:05 2021 +0900
@@ -446,6 +446,7 @@
     ("option") ("datalist")
     ;;HTML5
     ("video") ("audio") ("figure") ("iframe")
+    ("header") ("footer") ("article") ("section") ("nav") ("main") ("aside")
     ))
 
 (if yahtml-html4-strict
@@ -1714,6 +1715,9 @@
    (yahtml-make-optional-argument
     "value" (yahtml-read-parameter "value"))))
 
+(defun yahtml::article ()
+  (setq yahtml-last-typeface-cmd "h1" yahtml-last-begend "h1"))
+
 ;;; ---------- Simple tag ----------
 (defun yahtml-insert-tag (region-mode &optional tag)
   "Insert <TAG> </TAG> and put cursor inside of them."

yatex.org