public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* pandoc-figure filter
@ 2023-07-26 13:39 Christophe Demko
       [not found] ` <377aa04d-6832-4388-9e8e-6d6cde583e1fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Christophe Demko @ 2023-07-26 13:39 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 837 bytes --]

Hi,
I've developed a pandoc filter that transforms a div into a figure from 
markdown text. In particular, this allows you to use the new complex 
figures in pandoc>=3.0:

::: {.figure caption="Figure caption"}

![Tux junior 1 caption](Tux_junior-1.pdf "Tux Junior 1")

![Tux junior 2 caption](Tux_junior-2.pdf "Tux Junior 2")

![Tux junior 3 caption](Tux_junior-3.pdf "Tux Junior 3")

:::

produces the file as an attachment

-- 
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/377aa04d-6832-4388-9e8e-6d6cde583e1fn%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1225 bytes --]

[-- Attachment #2: Tux_junior-1.pdf --]
[-- Type: image/png, Size: 18509 bytes --]

[-- Attachment #3: Tux_junior-3.pdf --]
[-- Type: image/png, Size: 18804 bytes --]

[-- Attachment #4: pandoc-figure.txt --]
[-- Type: text/plain, Size: 218 bytes --]

::: {.figure caption="Figure caption"}

![Tux junior 1 caption](Tux_junior-1.pdf "Tux Junior 1")

![Tux junior 2 caption](Tux_junior-2.pdf "Tux Junior 2")

![Tux junior 3 caption](Tux_junior-3.pdf "Tux Junior 3")

:::

[-- Attachment #5: Tux_junior-2.pdf --]
[-- Type: image/png, Size: 18660 bytes --]

[-- Attachment #6: pandoc-figure.pdf --]
[-- Type: application/pdf, Size: 98170 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: pandoc-figure filter
       [not found] ` <377aa04d-6832-4388-9e8e-6d6cde583e1fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2023-07-26 13:41   ` Christophe Demko
  0 siblings, 0 replies; 2+ messages in thread
From: Christophe Demko @ 2023-07-26 13:41 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1039 bytes --]

This filter can be found on pypi: https://pypi.org/project/pandoc-figure/

Le mercredi 26 juillet 2023 à 15:39:18 UTC+2, Christophe Demko a écrit :

> Hi,
> I've developed a pandoc filter that transforms a div into a figure from 
> markdown text. In particular, this allows you to use the new complex 
> figures in pandoc>=3.0:
>
> ::: {.figure caption="Figure caption"}
>
> ![Tux junior 1 caption](Tux_junior-1.pdf "Tux Junior 1")
>
> ![Tux junior 2 caption](Tux_junior-2.pdf "Tux Junior 2")
>
> ![Tux junior 3 caption](Tux_junior-3.pdf "Tux Junior 3")
>
> :::
>
> produces the file as an attachment

-- 
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/c957ac1c-70d7-4e6c-b423-20f246e39e8en%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1622 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-26 13:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-26 13:39 pandoc-figure filter Christophe Demko
     [not found] ` <377aa04d-6832-4388-9e8e-6d6cde583e1fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-07-26 13:41   ` Christophe Demko

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).