public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: BPJ <melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Captions for code listings, lists, and custom divs
Date: Tue, 26 Jul 2022 23:01:25 +0200	[thread overview]
Message-ID: <CADAJKhDRuUekWgOLS9Dr3gBhiY280ZtabbhQzUSrjEnwtPKTMw@mail.gmail.com> (raw)
In-Reply-To: <8D93EC92-4B15-4AF6-B43D-A6E8CF061352-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 2230 bytes --]

Meanwhile pandoc-crossref should handle code block captions

https://github.com/lierdakil/pandoc-crossref

Den tis 26 juli 2022 16:56John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:

> This isn't currently built in.  See
> https://github.com/jgm/pandoc/issues/673
> When we get a dedicated Figure environment up and running, we could start
> using that.
>
> > On Jul 26, 2022, at 4:33 AM, name name <ivan20151013-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> >
> > Is it somehow possible to specify captions for code listings, lists and
> custom divs the same way as for tables?
> >
> > Something like this:
> >
> >     ~~~
> >     // some code
> >     ~~~
> >
> >   Listing:  Demonstration of fenced code block
> >
> > ... which will be converted into HTML like
> >
> >     <div>
> >         <p class="caption>Demonstration of fenced code block</p>
> >         <pre><code>// some code</code></pre>
> >     </div>
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "pandoc-discuss" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/0e1561aa-e85a-452f-bed7-cce80d06bf97n%40googlegroups.com
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/8D93EC92-4B15-4AF6-B43D-A6E8CF061352%40gmail.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhDRuUekWgOLS9Dr3gBhiY280ZtabbhQzUSrjEnwtPKTMw%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 3919 bytes --]

      parent reply	other threads:[~2022-07-26 21:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-26 11:33 name name
     [not found] ` <0e1561aa-e85a-452f-bed7-cce80d06bf97n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-07-26 11:35   ` name name
2022-07-26 14:55   ` John MacFarlane
     [not found]     ` <8D93EC92-4B15-4AF6-B43D-A6E8CF061352-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-07-26 21:01       ` BPJ [this message]

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=CADAJKhDRuUekWgOLS9Dr3gBhiY280ZtabbhQzUSrjEnwtPKTMw@mail.gmail.com \
    --to=melroch-re5jqeeqqe8avxtiumwx3w@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).