Hello,

Fabrice Popineau <fabrice.popin...@gmail.com> 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