From: Kaushal Modi <kaushal.modi@gmail.com>
To: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: RFC: Proposal for an Org Special Block for ox-html
Date: Thu, 24 May 2018 15:25:59 -0400 [thread overview]
Message-ID: <CAFyQvY2uSiK94WAOU7aBsf=iXOFdgjU_SdouFwYJma_updfJTw@mail.gmail.com> (raw)
In-Reply-To: <87in7c7tye.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2160 bytes --]
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:08 PM Aaron Ecay <aaronecay@gmail.com> wrote:
>
> Is it important for open to be a “bare” attribute (not sure of the
> official name) like “<details open>” as opposed to “<details
> open="open">”?
I'm not so sure.. I just followed the documentation here:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details#Creating_an_open_disclosure_box
> The latter form is already supported (in fact the second
> “open” can be any string). Just add
>
> #+attr_html: :open any-string-you-want
>
I know, but I did not test that.. just thought of doing as in that example
in the mozilla documentation.
That's why I am using (org-element-property :attr_html special-block) in
the code to get the raw values to #+attr_html.
> The only thing I know off the top of my head is that CSS can be quite
> hairy,
Heh, of course :)
> so I would not be surprised if this wrapper is sometimes needed.
> And indeed, support for it would be missing.
> Is it something that is
> likely to crop up for other elements as well, such that it would be
> desirable to support it in org core?
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.
It looks like this:
#+attr_html: :class red-text
#+attr_css: :color red
- Red list item 1
- Red list item 2
Above will generate <style .red-text { color: red; } </style><div
class="red-text">..</div>, with that list in the div.
You can find many such examples in
https://kaushalmodi@github.com/kaushalmodi/ox-hugo/blob/master/test/site/content-org/all-posts.org,
and the implementation in
https://github.com/kaushalmodi/ox-hugo/blob/master/ox-blackfriday.el. Let
me know what you think if you have a chance to review those.
--
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 3890 bytes --]
next prev parent reply other threads:[~2018-05-24 19:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-24 13:40 RFC: Proposal for an Org Special Block for ox-html Kaushal Modi
2018-05-24 17:41 ` Aaron Ecay
2018-05-24 18:08 ` Kaushal Modi
2018-05-24 18:28 ` Kaushal Modi
2018-05-24 18:36 ` Aaron Ecay
2018-05-24 18:47 ` Kaushal Modi
2018-05-24 19:08 ` Aaron Ecay
2018-05-24 19:25 ` Kaushal Modi [this message]
2018-05-25 14:19 ` Aaron Ecay
2018-05-25 15:09 ` Kaushal Modi
2018-05-25 16:38 ` Kaushal Modi
2018-05-27 16:21 ` Aaron Ecay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFyQvY2uSiK94WAOU7aBsf=iXOFdgjU_SdouFwYJma_updfJTw@mail.gmail.com' \
--to=kaushal.modi@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).