From: Gwern Branwen <gwern-v26ZT+9V8bxeoWH0uzbU5w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Easy collapsible sections with markdown
Date: Wed, 17 Jun 2020 11:51:18 -0400 [thread overview]
Message-ID: <CAMwO0gzz-eE0Q0MpYy-daRJBD+5FKSVgP3MNK1fPPoFxwdJa-g@mail.gmail.com> (raw)
In-Reply-To: <7309650e-0a39-4912-b027-dde817edd6d7o-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
If you're interested in HTML solutions, the standard HTML
disclosure/details stuff has some weaknesses. For gwern.net we went
with a JS-based solution implemented in
https://www.gwern.net/static/js/rewrite.js ; it works pretty well and
I use it for collapsing all sorts of things like appendices or code
blocks (because it's just another class, so you can write `~~~{.bash
.collapse}`, you can see many examples in my DL writeups like
https://www.gwern.net/Faces or https://www.gwern.net/GPT-2 ), where
just section-based collapsing would be inadequate.
--
gwern
next prev parent reply other threads:[~2020-06-17 15:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-17 11:12 boardtc
[not found] ` <7309650e-0a39-4912-b027-dde817edd6d7o-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-06-17 15:51 ` Gwern Branwen [this message]
2020-06-17 16:21 ` John Gabriele
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMwO0gzz-eE0Q0MpYy-daRJBD+5FKSVgP3MNK1fPPoFxwdJa-g@mail.gmail.com \
--to=gwern-v26zt+9v8bxeowh0uzbu5w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.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.
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 NNTP newsgroup(s).