emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Macro question
@ 2015-10-23 20:24 Fabrice Popineau
  2015-10-23 20:37 ` Nicolas Goaziou
  0 siblings, 1 reply; 11+ messages in thread
From: Fabrice Popineau @ 2015-10-23 20:24 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 713 bytes --]

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:<div class"foo">@@
#+macro: efoo @@html:</div>@@

The macros {{{bfoo}}} and {{{efoo}}} are expanded surrounded by <p> ...
</p>.

This is quite a limitation. Is it the intended behavior?
If the reason is that the macro could output text that needs the <p> ...
</p>, then
the problem is the point at which macros are expanded in the flow.
An option would be to allow #+html: in the macro, but that doesn't work.
The #+html:
directive gets straight on the output.

Sorry if this has already been discussed here.
(I vaguely remember some discussions about recursive macros)

Fabrice

[-- Attachment #2: Type: text/html, Size: 1018 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-10-25 12:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-23 20:24 Macro question Fabrice Popineau
2015-10-23 20:37 ` Nicolas Goaziou
2015-10-23 21:33   ` Fabrice Popineau
2015-10-23 22:18     ` Nicolas Goaziou
2015-10-24  9:39       ` Fabrice Popineau
2015-10-24  9:53         ` Nicolas Goaziou
2015-10-24 11:37           ` Fabrice Popineau
2015-10-24 11:44             ` Nicolas Goaziou
2015-10-24 17:02             ` Eric S Fraga
2015-10-25  9:45               ` Fabrice Popineau
2015-10-25 12:04                 ` Eric S Fraga

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).