* Export and links
@ 2013-09-04 11:56 Fabrice Popineau
2013-09-04 12:06 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Popineau @ 2013-09-04 11:56 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 938 bytes --]
Hi,
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. Is there a way to achieve
<p>
<h2><a href="http:foo.html">FOO</a></h2>
</p>
instead ? (Probably already asked ?)
Secondary questions :
- 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?
Thanks in advance,
Fabrice
[-- Attachment #2: Type: text/html, Size: 1690 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Export and links
2013-09-04 11:56 Export and links Fabrice Popineau
@ 2013-09-04 12:06 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2013-09-04 12:06 UTC (permalink / raw)
To: Fabrice Popineau; +Cc: emacs-orgmode@gnu.org
Hello,
Fabrice Popineau <fabrice.popineau@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-04 12:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-04 11:56 Export and links Fabrice Popineau
2013-09-04 12:06 ` Nicolas Goaziou
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).