From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: RFC: Proposal for an Org Special Block for ox-html Date: Fri, 25 May 2018 15:19:54 +0100 Message-ID: <87d0xj7r79.fsf@gmail.com> References: <87o9h56jdl.fsf@gmail.com> <87lgc87vf1.fsf@gmail.com> <87in7c7tye.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMDZa-0001Wk-6J for emacs-orgmode@gnu.org; Fri, 25 May 2018 10:20:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMDZW-0000rx-7b for emacs-orgmode@gnu.org; Fri, 25 May 2018 10:20:02 -0400 Received: from mail-wr0-x236.google.com ([2a00:1450:400c:c0c::236]:35842) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fMDZW-0000rD-1c for emacs-orgmode@gnu.org; Fri, 25 May 2018 10:19:58 -0400 Received: by mail-wr0-x236.google.com with SMTP id k5-v6so9551262wrn.3 for ; Fri, 25 May 2018 07:19:57 -0700 (PDT) In-Reply-To: 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: Kaushal Modi , emacs-org list Hi Kaushal, 2018ko maiatzak 24an, Kaushal Modi-ek idatzi zuen: > That's why I am using (org-element-property :attr_html special-block) in > the code to get the raw values to #+attr_html. I=CA=BCm not sure I made myself clear in the previous message. In any case, this org: =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 #+attr_html: :open t =E2=94=82 #+begin_details =E2=94=82 #+begin_summary =E2=94=82 Open for details =E2=94=82=20 =E2=94=82 More summary. =E2=94=82 #+end_summary =E2=94=82 Many details here. =E2=94=82 #+end_details =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 exports to this HTML (using current-ish master with no additional modifications beyond the tweak to org-html-html5-elements): =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82
=E2=94=82 =E2=94=82

=E2=94=82 Open for details =E2=94=82

=E2=94=82=20 =E2=94=82

=E2=94=82 More summary. =E2=94=82

=E2=94=82
=E2=94=82

=E2=94=82 Many details here. =E2=94=82

=E2=94=82
=E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 which displays in the open state in a browser (in any event, in Chromium 66). So I think what you want already exists for this feature. > That would be great. I myself wasn't sure if I should bring that up to Org > core.. I had just implemented #+attr_css support for ox-hugo. >=20 > It looks like this: >=20 > #+attr_html: :class red-text > #+attr_css: :color red > - Red list item 1 > - Red list item 2 >=20 > Above will generate