From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: angle brackets around timestamps in html export Date: Tue, 03 Sep 2013 15:50:04 +0200 Message-ID: <87vc2i2ewj.fsf@gmail.com> References: <87d2oq3vqa.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGqzX-0008ED-Jv for emacs-orgmode@gnu.org; Tue, 03 Sep 2013 09:50:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGqzO-00058S-IP for emacs-orgmode@gnu.org; Tue, 03 Sep 2013 09:49:59 -0400 Received: from mail-ea0-x22f.google.com ([2a00:1450:4013:c01::22f]:55381) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGqzO-000588-BQ for emacs-orgmode@gnu.org; Tue, 03 Sep 2013 09:49:50 -0400 Received: by mail-ea0-f175.google.com with SMTP id m14so2972139eaj.6 for ; Tue, 03 Sep 2013 06:49:49 -0700 (PDT) In-Reply-To: (Matt Price's message of "Tue, 3 Sep 2013 09:40:45 -0400") 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: Matt Price Cc: Org Mode Matt Price writes: > so it looks like it's difficult to remove the brackets with those two > variables. Indeed. It looks like `org-translate-time' always add brackets in the end. > >>> Sorry I can't find the answer in the docs, I'm sure it's there >>> somewhere but I'm missing it somehow! >> >> You can also use a filter on every timestamp exported and make sure any >> angle bracket is removed. > > I was able to add this bit of javascript to my wordpress site to > remove the brackets: > ----------- > var elements = document.getElementsByClassName("timestamp"); > for (var i = 0; i < elements.length; ++i) { > console.log("removing timestamp"); > elements[i].innerHTML = > elements[i].innerHTML.replace(/(<|>|\[|\])/g,''); > } > --------- > Is that what you mean by a filter, or should I be doing something in > emacs. I basically meant the Elisp counterpart of this. See `org-export-filter-timestamp-functions' and "12.13 Advanced configuration" in Org manual. Regards, -- Nicolas Goaziou