[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] angle brackets around timestamps in html export
From: |
Nicolas Goaziou |
Subject: |
Re: [O] angle brackets around timestamps in html export |
Date: |
Tue, 03 Sep 2013 15:50:04 +0200 |
Matt Price <address@hidden> 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