diff --git a/lisp/ox-html.el b/lisp/ox-html.el index c0509ff0a..918d70e90 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -2679,16 +2679,12 @@ the plist used as a communication channel." ;;;; Plain List -;; FIXME Maybe arg1 is not needed because
  • already sets -;; the correct value for the item counter -(defun org-html-begin-plain-list (type &optional arg1) +(defun org-html-begin-plain-list (type ordered-num) "Insert the beginning of the HTML list depending on TYPE. -When ARG1 is a string, use it as the start parameter for ordered -lists." +If ORDERED-NUM is nil, the list order is alphabetical." (case type - (ordered - (format "
      " - (if arg1 (format " start=\"%d\"" arg1) ""))) + (ordered (format "
        " + (if ordered-num "" " type=\"a\""))) (unordered "
          ") (descriptive "
          "))) @@ -2703,10 +2699,14 @@ lists." "Transcode a PLAIN-LIST element from Org to HTML. CONTENTS is the contents of the list. INFO is a plist holding contextual information." - (let* (arg1 ;; (assoc :counter (org-element-map plain-list 'item + (let* ((ordered-num + (org-element-map plain-list 'item + (lambda (i) + (null (string-to-number (org-element-property :bullet i)))) + info 'first-match)) (type (org-element-property :type plain-list))) (format "%s\n%s%s" - (org-html-begin-plain-list type) + (org-html-begin-plain-list type ordered-num) contents (org-html-end-plain-list type)))) ;;;; Plain Text