Peter Davis <p...@pfdstudio.com> writes:

> I noticed that HTML output contains "[ ]" and "[X]", just like the
> mark-up. Wouldn't it make sense to use actual unchecked or checked
> checkboxes in HTML?
>
> Is there a simple way to do this that I've overlooked?
>

A cursory glance through ox-html.el uncovered this:

--8<---------------cut here---------------start------------->8---
(defun org-html-checkbox (checkbox)
  "Format CHECKBOX into HTML."
  (case checkbox (on "<code>[X]</code>")
        (off "<code>[&#xa0;]</code>")
        (trans "<code>[-]</code>")
        (t "")))
--8<---------------cut here---------------end--------------->8---

Maybe you can redefine this function to do what you want?

Nick


Reply via email to