[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] MACRO and HTML escapes and migration to org-mode 8
From: |
Christian Moe |
Subject: |
Re: [O] MACRO and HTML escapes and migration to org-mode 8 |
Date: |
Tue, 02 Apr 2013 13:33:44 +0200 |
User-agent: |
mu4e 0.9.9.5-dev6; emacs 24.3.1 |
Hi, Adrian,
The fine manual is not yet up to date with the new exporter, so when you're
bitten, check http://orgmode.org/worg/org-8.0.html.
The "@" html-tag quoting has been replaced with a generalized "export
snippets" syntax (currently described at
http://orgmode.org/worg/org-8.0.html#sec-8-1).
This works:
#+MACRO: datetime @@html:<span class="datetime" title="$1">$2</span>@@
Yours,
Christian
Adrian writes:
> I've finally bitten the bullet and tried to get my org-mode export
> working with the new export mechanisms, so far so good.
>
> My current sticking point is with my use of #+MACRO and "@" escapes in
> them -- they used to work in the old version of org-mode, in the current
> one I get them quoted verbatim into the HTML output with text like
>
> @<span blah blah >text@</span>
>
> I must be missing the key part of TFM, since section 12.5.3 seems to say
> that "@" still escapes simple HTML tags. I've got a header file that
> includes the line:
>
> #+MACRO: datetime @<span class="datetime" title="$1">$2@</span>
>
> This is then included in the org-mode files with
>
> #+SETUPFILE: ~/path/macros.inc
>
> Then in the text I have entries such as
> {{{datetime(2013-04-01,yesterday)}}} -- and it all used to work.