Matt Price <mopto...@gmail.com> 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(/(&lt;|&gt;|\[|\])/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

Reply via email to