[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Is it possible to add a class to a paragraph in HTML export?
From: |
Rick Frankel |
Subject: |
Re: [O] Is it possible to add a class to a paragraph in HTML export? |
Date: |
Wed, 16 Apr 2014 21:13:31 -0400 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Wed, Apr 02, 2014 at 09:06:48AM +0200, Nicolas Goaziou wrote:
>
> If deemed useful, I think this patch should use
> `org-html--make-attribute-string' instead of hard-coding "class"
> attribute:
>
> (attributes (org-html--make-attribute-string
> (org-export-read-attribute :attr_html paragraph)))
>
> ...
>
> (t (format "<p%s%s>\n%s</p>" attributes extra contents))
>
> This way, attributes will not be limited to "class" only. See, for
> example, `org-html-special-block'.
A version of this patch using Nicolas' approach has been pushed to master.
rick