* Captions for code listings, lists, and custom divs
@ 2022-07-26 11:33 name name
[not found] ` <0e1561aa-e85a-452f-bed7-cce80d06bf97n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: name name @ 2022-07-26 11:33 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 804 bytes --]
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.
[-- Attachment #1.2: Type: text/html, Size: 1386 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Captions for code listings, lists, and custom divs
[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
1 sibling, 0 replies; 4+ messages in thread
From: name name @ 2022-07-26 11:35 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 957 bytes --]
The whole point is to have automatic numbering for them.
On Tuesday, July 26, 2022 at 2:33:05 PM UTC+3 name name 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/bfa32d9e-4a5c-4faa-8c48-7233440d72b5n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 1724 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Captions for code listings, lists, and custom divs
[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>
1 sibling, 1 reply; 4+ messages in thread
From: John MacFarlane @ 2022-07-26 14:55 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Captions for code listings, lists, and custom divs
[not found] ` <8D93EC92-4B15-4AF6-B43D-A6E8CF061352-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2022-07-26 21:01 ` BPJ
0 siblings, 0 replies; 4+ messages in thread
From: BPJ @ 2022-07-26 21:01 UTC (permalink / raw)
To: pandoc-discuss
[-- 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 --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-07-26 21:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-26 11:33 Captions for code listings, lists, and custom divs 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 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).