Skip to content

Commit

Permalink
fix for html5
Browse files Browse the repository at this point in the history
  • Loading branch information
Zilong-Li committed Oct 13, 2024
1 parent a0673ce commit 5a467f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions org-tufte.el
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
;; Maintainer: Zilong Li <[email protected]>
;; Created: March 14, 2023
;; Modified: April 14, 2024
;; Version: 0.7.0
;; Version: 0.8.0
;; Keywords: org html tufte css
;; Homepage: https://github.com/Zilong-Li/org-tufte
;; Package-Requires: ((org "9.5") (emacs "27.1"))
Expand Down Expand Up @@ -256,8 +256,8 @@ arguments CAPTION and LABEL are given, use them for caption and
(if (org-string-nw-p label) (format " id=\"%s\"" label) "")
;; Caption.
(if (not (org-string-nw-p caption)) ""
(format (if html5-fancy "\n<figcaption>%s</figcaption>"
"\n<label for=\"mn-exports-imports\" class=\"margin-toggle\">⊕</label><input type=\"checkbox\" id=\"mn-exports-imports\" class=\"margin-toggle\"><span class=\"marginnote\">%s</span>")
(format
"\n<label for=\"mn-exports-imports\" class=\"margin-toggle\">⊕</label><input type=\"checkbox\" id=\"mn-exports-imports\" class=\"margin-toggle\"><span class=\"marginnote\">%s</span>"
caption))
;; Contents.
(if html5-fancy contents (format "%s</p>" contents))
Expand Down

0 comments on commit 5a467f1

Please sign in to comment.