emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Export and links


From: Nicolas Goaziou
Subject: Re: [O] Export and links
Date: Wed, 04 Sep 2013 14:06:23 +0200

Hello,

Fabrice Popineau <address@hidden> writes:

> If I export this to html :
>
> -----------------------------------------------------------------------
> #+TITLE: FOO
>
> #+macro: huge @@html:<h1>$1</h1>@@
> #+macro: large @@html:<h2>$1</h2>@@
>
> * Foo page
>
> {{{large([[http:test.html][FOO]])}}}
> -----------------------------------------------------------------------
>
> I get :
>
> <p>
> <h2>[[http:test.html][FOO]]</h2>
> </p>
>
>
> The link is not honoured.

It happens because you enclose it within an export snippet, where
nothing is interpreted. You may use instead:

  #+macro: large @@html:<h2>@@$1@@html:</h2>@@


> - is there a way to avoid the "spurious" <p> ? Sometimes, you may want to
> avoid <p> around paragraphs because there are already others tags.
>
> - exporting the org text above, I also get this :
>
> <div class="figure">
> <p>
> </p>
> </div>
>
> in the midlle of the generated html. It seems to be the translation of the
> blank line between the heading and the text. Is there a way to avoid
> it?

I cannot reproduce it with the example above.


Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]