emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] How do I set a class for a paragraph in HTML export?


From: Richard Lawrence
Subject: Re: [O] How do I set a class for a paragraph in HTML export?
Date: Mon, 01 Dec 2014 20:36:50 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Hi Marcin,

Marcin Borkowski <address@hidden> writes:
>
> I'd like to get something like this:
>
> <p class="myclass">Hello world</p>
>
> What should I write in the Org file?  Looking at org-html-paragraph, I'm
> afraid that it's currently impossible.

This works for me:

----------------------------------
#+ATTR_HTML: :class myclass
This is a paragraph.
----------------------------------

That produces
----------------------------------
<p class="myclass">
This is a paragraph.</p>
----------------------------------
in the exported HTML.

Best,
Richard

OpenPGP Key ID: CF6FA646
Fingerprint: 9969 43E1 CF6F A646

(See http://www.ocf.berkeley.edu/~rwl/encryption.html for more information.)




reply via email to

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