[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Export Org checkboxes in ox-html using UTF-8 symbols
From: |
Grant Rettke |
Subject: |
[O] Export Org checkboxes in ox-html using UTF-8 symbols |
Date: |
Wed, 26 Mar 2014 20:56:51 -0500 |
Hi,
Sacha Chua made a nice hack to export checkboxes as unicode symbols to
HTML here:
http://sachachua.com/blog/2014/03/emacs-tweaks-export-org-checkboxes-using-utf-8-symbols/?shareadraft=baba27119_533313c944f64
(defun sacha/org-html-checkbox (checkbox)
"Format CHECKBOX into HTML."
(case checkbox (on "<span class=\"check\">☑</span>") ;
checkbox (checked)
(off "<span class=\"checkbox\">☐</span>")
(trans "<code>[-]</code>")
(t "")))
(defadvice org-html-checkbox (around sacha activate)
(setq ad-return-value (sacha/org-html-checkbox (ad-get-arg 0))))
Thanks Sacha.
Regards,
Grant Rettke | AAAS, ACM, AMA, COG, IEEE, Sigma Xi
address@hidden | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson
- [O] Export Org checkboxes in ox-html using UTF-8 symbols,
Grant Rettke <=