Re: [O] RFC: Proposal for an Org Special Block for ox-html

2018-05-27 Thread Aaron Ecay
Hi Kaushal, [...] > But then I also wanted to mask all the shortcoming of Markdown. So ox-hugo > helps bridge that gap by filling in HTML snippets only where needed. I hope > that makes sense. It does indeed make sense, thanks for the explanation. Now I understand the context a bit better. I a

Re: [O] RFC: Proposal for an Org Special Block for ox-html

2018-05-25 Thread Kaushal Modi
Hi Aaron, I really appreciate your feedback. That helped fine-tune my implementation of details/summary. I now moved that code to the ox-blackfriday library when I have this in org-blackfriday-special-block: It's basically QOL code: 1. Wraps the "details" portion in " .. ". 2. Accepts only ":op

Re: [O] RFC: Proposal for an Org Special Block for ox-html

2018-05-25 Thread Kaushal Modi
Hi Aaron, On Fri, May 25, 2018 at 10:19 AM Aaron Ecay > Iʼm not sure I made myself clear in the previous message. In any case, > this org: > > ╭ > │ #+attr_html: :open t > │ #+begin_details > │ #+begin_summary > │ Open for details > │ > │ More summary. > │ #+end_summary > │ Many details her

Re: [O] RFC: Proposal for an Org Special Block for ox-html

2018-05-25 Thread Aaron Ecay
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ʼm not sure I made myself clear in the previous message. In any case, this org: ╭ │ #+attr_html: :open

Re: [O] RFC: Proposal for an Org Special Block for ox-html

2018-05-24 Thread Kaushal Modi
Hi Aaron, I just went ahead and removed that "---" syntax from ox-hugo. Updated links: 1. https://ox-hugo.scripter.co/doc/details-and-summary/ 2. https://ox-hugo.scripter.co/test/posts/details-and-summary/ (it was easy as I had committed that feature just yesterday.) On Thu, May 24, 2018 at 3:0

Re: [O] RFC: Proposal for an Org Special Block for ox-html

2018-05-24 Thread Aaron Ecay
Hi Kaushal, 2018ko maiatzak 24an, Kaushal Modi-ek idatzi zuen: > > Yes, the proposal though supports these 2 things specific to details > element: > > 1. Detecting "open" attribute via "#+attr_html: open". Is it important for open to be a “bare” attribute (not sure of the official name) like “”

Re: [O] RFC: Proposal for an Org Special Block for ox-html

2018-05-24 Thread Kaushal Modi
Hi Aaron, On Thu, May 24, 2018 at 2:36 PM Aaron Ecay wrote: > > I wasnʼt 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 speci

Re: [O] RFC: Proposal for an Org Special Block for ox-html

2018-05-24 Thread Aaron Ecay
Hi Kaushal, 2018ko maiatzak 24an, Kaushal Modi-ek idatzi zuen: > > HTML allows multi-paragraph summaries.. (see my test link above). Expanding > on your idea.. what if we had another Special block with name summary? I wasnʼt thinking about multiparagraph summaries. But actually, I realize that

Re: [O] RFC: Proposal for an Org Special Block for ox-html

2018-05-24 Thread Kaushal Modi
Hello Aaron, On Thu, May 24, 2018 at 2:08 PM Kaushal Modi wrote: > Expanding on your idea.. what if we had another Special block with name > summary? > > #+begin_details > #+begin_summary > Open for details > > More summary. > #+end_summary > Many details here. > #+end_details > >From quick tes

Re: [O] RFC: Proposal for an Org Special Block for ox-html

2018-05-24 Thread Kaushal Modi
Hi Aaron, Thanks for the feedback. On Thu, May 24, 2018 at 1:42 PM Aaron Ecay wrote: > 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 > Yes, I think th

Re: [O] RFC: Proposal for an Org Special Block for ox-html

2018-05-24 Thread Aaron Ecay
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 “magic” strings in the contents seems hackish. What if the summary was treated as a

[O] RFC: Proposal for an Org Special Block for ox-html

2018-05-24 Thread Kaushal Modi
Hello, Yesterday, I came up with a way to generate the HTML details disclosure fairly easily using Org Special Blocks. I implemented that in ox-hugo. But I believe the same would be useful for ox-html too. Here's the relevant code snippet: ((string= block-type "details") ;; Recognize O