From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Lechtenboerger Subject: Re: PATCH: Allow class attribute for headline in HTML export Date: Tue, 04 Dec 2018 11:46:22 +0100 Message-ID: <87o9a1wow1.fsf@wi.uni-muenster.de> References: <87d0qj3hwu.fsf@informationelle-selbstbestimmung-im-internet.de> <87ftvf20d2.fsf@informationelle-selbstbestimmung-im-internet.de> <874lbvlly5.fsf@nicolasgoaziou.fr> <87tvjvds5w.fsf@wi.uni-muenster.de> <87tvjtiocd.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gU8Dn-0001v8-FB for emacs-orgmode@gnu.org; Tue, 04 Dec 2018 05:46:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gU8Dj-0000op-GK for emacs-orgmode@gnu.org; Tue, 04 Dec 2018 05:46:31 -0500 Received: from zivm-wwu1-1.uni-muenster.de ([128.176.192.4]:31216 helo=zivm-wwu1.uni-muenster.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gU8Dj-0000i8-5I for emacs-orgmode@gnu.org; Tue, 04 Dec 2018 05:46:27 -0500 Received: from localhost (D-3140W19.WIWI.UNI-MUENSTER.DE [128.176.158.169]) by udc-mail.uni-muenster.de (Postfix) with ESMTP id 7C97C20ADF20 for ; Tue, 4 Dec 2018 11:46:22 +0100 (CET) Received: from user by localhost with local (Exim 4.84_2) (envelope-from ) id 1gU8De-00012U-Dz for emacs-orgmode@gnu.org; Tue, 04 Dec 2018 11:46:22 +0100 In-Reply-To: <87tvjtiocd.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Tue, 4 Dec 2018 11:21:54 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hello, On 2018-12-04, Nicolas Goaziou wrote: > Jens Lechtenboerger writes: > >> I plan to use that for a table-of-contents plugin [1] of reveal.js, >> which looks for class attributes inside h-elements to exclude them >> selectively. > > Then I suggest to submit it to "ox-reveal" > (https://github.com/yjwen/org-reveal/) instead. Function org-reveal-headline calls org-html-headline to generate h-elements. Of course, I could parse the generated HTML in ox-reveal and add a class attribute based on org properties, but doing so in ox-html seems much cleaner to me. (Besides, given the current situation of ox-reveal [1], that change would only make it into my fork, not into the original project.) Best wishes Jens [1] https://github.com/yjwen/org-reveal/issues/349