public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* How to include base64 encoded image in mark down.
@ 2020-04-13  9:27 Cesare Vinciguerra
       [not found] ` <6e82a28b-71b8-46a5-a313-1ce4eb966b51-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Cesare Vinciguerra @ 2020-04-13  9:27 UTC (permalink / raw)
  To: pandoc-discuss


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

Hi i would like to understand if it's possibile to convert docx to md 
including image as bas64 in the markdown.

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

* Re: How to include base64 encoded image in mark down.
       [not found] ` <6e82a28b-71b8-46a5-a313-1ce4eb966b51-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2020-04-13 16:31   ` John MacFarlane
       [not found]     ` <m2imi3ibzc.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2020-04-13 16:31 UTC (permalink / raw)
  To: Cesare Vinciguerra, pandoc-discuss


There are a couple approaches you could try:

1.  Use a pandoc filter to replace the image URLs with base64 data: URLs.
    (Requires some programming.)

2.  Try converting to HTML using the --self-contained option,
    then convert the result from HTML to Markdown.

Cesare Vinciguerra <cesare.vincig-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Hi i would like to understand if it's possibile to convert docx to md 
> including image as bas64 in the markdown.
>
>
> -- 
> 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/6e82a28b-71b8-46a5-a313-1ce4eb966b51%40googlegroups.com.


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

* Re: How to include base64 encoded image in mark down.
       [not found]     ` <m2imi3ibzc.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2020-04-13 16:55       ` BPJ
  0 siblings, 0 replies; 3+ messages in thread
From: BPJ @ 2020-04-13 16:55 UTC (permalink / raw)
  To: pandoc-discuss; +Cc: Cesare Vinciguerra

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

I once wrote just such a filter in Perl using an existing CPAN module, but
it probably doesn't work anymore.

Here are some Lua functions and pointers to libraries:

http://lua-users.org/wiki/BaseSixtyFour


Den mån 13 apr. 2020 18:32John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> skrev:

>
> There are a couple approaches you could try:
>
> 1.  Use a pandoc filter to replace the image URLs with base64 data: URLs.
>     (Requires some programming.)
>
> 2.  Try converting to HTML using the --self-contained option,
>     then convert the result from HTML to Markdown.
>
> Cesare Vinciguerra <cesare.vincig-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
> > Hi i would like to understand if it's possibile to convert docx to md
> > including image as bas64 in the markdown.
> >
> >
> > --
> > 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/6e82a28b-71b8-46a5-a313-1ce4eb966b51%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/m2imi3ibzc.fsf%40johnmacfarlane.net
> .
>

-- 
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/CADAJKhCyYg%2BdcVrJ%3DUS_yO3K%3DV_xF938tfvn1CC-D-Meex4dDg%40mail.gmail.com.

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

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

end of thread, other threads:[~2020-04-13 16:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-13  9:27 How to include base64 encoded image in mark down Cesare Vinciguerra
     [not found] ` <6e82a28b-71b8-46a5-a313-1ce4eb966b51-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-04-13 16:31   ` John MacFarlane
     [not found]     ` <m2imi3ibzc.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2020-04-13 16:55       ` 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).