From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Getting checkboxes in HTML output? Date: Wed, 27 Nov 2013 11:03:38 -0500 Message-ID: <8738mhal2d.fsf@alphaville.bos.redhat.com> References: <20131127154534.GA12765@pdavismbp15.iscinternal.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vlhap-0008JX-QM for emacs-orgmode@gnu.org; Wed, 27 Nov 2013 11:04:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vlhaj-00066e-Kl for emacs-orgmode@gnu.org; Wed, 27 Nov 2013 11:03:59 -0500 Received: from plane.gmane.org ([80.91.229.3]:34077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vlhaj-00066Y-EK for emacs-orgmode@gnu.org; Wed, 27 Nov 2013 11:03:53 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Vlhaf-00066w-SI for emacs-orgmode@gnu.org; Wed, 27 Nov 2013 17:03:49 +0100 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Nov 2013 17:03:49 +0100 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Nov 2013 17:03:49 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Peter Davis 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 "[X]") (off "[ ]") (trans "[-]") (t ""))) --8<---------------cut here---------------end--------------->8--- Maybe you can redefine this function to do what you want? Nick