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: Thu, 24 May 2018 19:36:34 +0100 Message-ID: <87lgc87vf1.fsf@gmail.com> References: <87o9h56jdl.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]:39848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLv6P-0003Lg-LP for emacs-orgmode@gnu.org; Thu, 24 May 2018 14:36:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLv6M-0004F3-Bc for emacs-orgmode@gnu.org; Thu, 24 May 2018 14:36:41 -0400 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:51253) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fLv6M-0004Ec-5X for emacs-orgmode@gnu.org; Thu, 24 May 2018 14:36:38 -0400 Received: by mail-wm0-x22f.google.com with SMTP id j4-v6so7823674wme.1 for ; Thu, 24 May 2018 11:36:37 -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: >=20 > HTML allows multi-paragraph summaries.. (see my test link above). Expandi= ng > on your idea.. what if we had another Special block with name summary? 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. Specifically, the following document already yields the desired behavior with vanilla org (both giving the proper behavior in html5, and having a fallback for earlier versions): =3D=3D=3D=3D=3D * setup #+begin_src emacs-lisp (add-to-list 'org-html-html5-elements "details") (add-to-list 'org-html-html5-elements "summary") (setq-local org-html-html5-fancy t) (setq-local org-html-doctype "html5") #+end_src * subtree #+begin_details #+begin_summary Open for details More summary. #+end_summary Many details here. #+end_details =3D=3D=3D=3D=3D Assuming there are no objections, we could make this tweak to =E2=80=98org-html-html5-elements=E2=80=99 in org core. I think =E2=80=9Csy= ntactic sugar=E2=80=9D like your original proposal could be implemented as a before-parsing-hook that transforms the --- into the above syntax. Aaron 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... --=20 Aaron Ecay