From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: RFC: Proposal for an Org Special Block for ox-html Date: Thu, 24 May 2018 14:47:29 -0400 Message-ID: References: <87o9h56jdl.fsf@gmail.com> <87lgc87vf1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000001c0b7c056cf816bc" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLvH6-0005gR-Rg for emacs-orgmode@gnu.org; Thu, 24 May 2018 14:47:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLvH6-0008Jl-18 for emacs-orgmode@gnu.org; Thu, 24 May 2018 14:47:44 -0400 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:35141) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fLvH5-0008Jc-PX for emacs-orgmode@gnu.org; Thu, 24 May 2018 14:47:43 -0400 Received: by mail-wm0-x231.google.com with SMTP id o78-v6so8151777wmg.0 for ; Thu, 24 May 2018 11:47:43 -0700 (PDT) In-Reply-To: <87lgc87vf1.fsf@gmail.com> 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-org list --0000000000001c0b7c056cf816bc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Aaron, On Thu, May 24, 2018 at 2:36 PM Aaron Ecay wrote: > > I wasn=CA=BCt thinking about multiparagraph summaries. But actually, I > realize that your suggestion in response would work with only one small > change to a variable in ox-html. Yes, the proposal though supports these 2 things specific to details element: 1. Detecting "open" attribute via "#+attr_html: open". 2. Adding a wrapper

tag around the details portion following the

tag. Useful if user wants to set CSS rules for "details .details". > Assuming there are no objections, we could make this tweak to > =E2=80=98org-html-html5-elements=E2=80=99 in org core. I don't mind adding that to ox-html. Just that the details disclosure implementation will be /slightly/ incomplete, but still very functional. I think =E2=80=9Csyntactic sugar=E2=80=9D like > your original proposal could be implemented as a before-parsing-hook > that transforms the --- into the above syntax. > +1 > PS Once upon a time, I created ox-extras in contrib as a home for little > snippets like this hypothetical before-parsing-hook. It never really > took off, but maybe it=CA=BCs just biding its time... > Sure thing :) --=20 Kaushal Modi --0000000000001c0b7c056cf816bc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Aaron,

On Thu, May 24, 2018 at 2:36 PM Aaron Ecay <aaronecay@gmail.com> wrote:

I wasn=CA=BCt thinking about multiparagraph summaries.=C2=A0 But actually, = I
realize that your suggestion in response would work with only one small
change to a variable in ox-html.

Yes, the p= roposal though supports these 2 things specific to details element:

1. Detecting "open" attribute via "#+attr_= html: open".
2. Adding a wrapper <p class=3D"details= "> tag around the details portion following the <summary> tag= . Useful if user wants to set CSS rules for "details .details".
=C2=A0
Assuming there = are no objections, we could make this tweak to
=E2=80=98org-html-html5-elements=E2=80=99 in org core.
I don't mind adding that to ox-html. Just that the details = disclosure implementation will be /slightly/ incomplete, but still very fun= ctional.

=C2=A0 I think= =E2=80=9Csyntactic sugar=E2=80=9D like
your original proposal could be implemented as a before-parsing-hook
that transforms the --- into the above syntax.

+1
=C2=A0
PS Once upon a time, I created ox-extras in contrib as a home for little snippets like this hypothetical before-parsing-hook.=C2=A0 It never really<= br> took off, but maybe it=CA=BCs just biding its time...
=
Sure thing :)
--

Kaushal Modi

--0000000000001c0b7c056cf816bc--