Browse Source

ox-deck: parse checkboxes properly

*ox-deck.el
Previously, list items with checkboxes would not build properly. This
trivial and clumsy patch fixes that.
Matt Price 4 years ago
parent
commit
22c652599c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      contrib/lisp/ox-deck.el

+ 3 - 1
contrib/lisp/ox-deck.el

@@ -382,7 +382,9 @@ the \"slide\" class will be added to the to the list element,
  which will make the list into a \"build\"."
   (let ((text (org-html-item item contents info)))
     (if (org-export-get-node-property :STEP item t)
-        (replace-regexp-in-string "^<li>" "<li class='slide'>" text)
+	(progn
+	  (replace-regexp-in-string "^<li>" "<li class='slide'>" text)
+	  (replace-regexp-in-string "^<li class='checkbox'>" "<li class='checkbox slide'>" text))
       text)))
 
 (defun org-deck-link (link desc info)