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 18:41:58 +0100 Message-ID: <87o9h56jdl.fsf@gmail.com> References: 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]:55390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLuFa-0001MW-1J for emacs-orgmode@gnu.org; Thu, 24 May 2018 13:42:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLuFW-00028m-Qp for emacs-orgmode@gnu.org; Thu, 24 May 2018 13:42:06 -0400 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:52547) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fLuFW-00027s-JC for emacs-orgmode@gnu.org; Thu, 24 May 2018 13:42:02 -0400 Received: by mail-wm0-x229.google.com with SMTP id 18-v6so1818146wml.2 for ; Thu, 24 May 2018 10:42:02 -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, It seems like a good idea. My two comments are: - Remember that ox-html can export to HTML4, so the code would need to detect that case and have a sensible fallback - The approach of looking for =E2=80=9Cmagic=E2=80=9D strings in the conten= ts seems hackish. What if the summary was treated as a caption? #+caption: Open for details #+begin_details Many details here. #+end_details (Admittedly, the mismatch between =E2=80=9Ccaption=E2=80=9D and =E2=80=9Csu= mmary=E2=80=9D is not ideal, but caption is the only suitable keyword that the syntax gives us...). Another idea would be: #+begin_details #+summary: Open for details. Many details here. #+end_details This approach would require a supporing change to be made to the =E2=80=98org-html-keyword=E2=80=99 function. Just food for thought... --=20 Aaron Ecay