Hello Nicolas, 2015-10-23 22:37 GMT+02:00 Nicolas Goaziou : > Hello, > > Fabrice Popineau writes: > > > I was wondering if macros could be used to output raw html code, but that > > doesn't seem to be the case. > > > > Namely: > > > > #+macro: bfoo @@html:
@@ > > #+macro: efoo @@html:
@@ > > > > The macros {{{bfoo}}} and {{{efoo}}} are expanded surrounded by

... > >

. > > Macros can output raw inline HTML code. If you want to generate any HTML > code, you can use some babel block to do that. > > I agree that raw html can be output by macros, but it can easily break too. At the moment : --------------------------------------------------------------------------------------------- #+macro: bfoo @@html:
@@ #+macro: efoo @@html:
@@ * Section {{{bfoo}}} Some text. {{{efoo}}} --------------------------------------------------------------------------------------------- is exported as : ---------------------------------------------------------------------------------------------

Section

Some text.

--------------------------------------------------------------------------------------------- But : --------------------------------------------------------------------------------------------- #+macro: bfoo @@html:
@@ #+macro: efoo @@html:
@@ * Section {{{bfoo}}} Some text. {{{efoo}}} --------------------------------------------------------------------------------------------- is exported as : ---------------------------------------------------------------------------------------------

Section

Some text.

--------------------------------------------------------------------------------------------- In the first case, the

...

are quite annoying. In the second case, the

...

is spurious, but at least it doesn't break the structure. I wonder if there is a way to guess where ox-html could avoid to emit paragraphs. Regards, Fabrice