public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* [Windows] html to markdown convertion how to avoid backslash image path?
@ 2020-11-05 13:14 Jiapeng Li
       [not found] ` <0332c466-66d9-4f10-b75d-8ebc1a0bd12an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Jiapeng Li @ 2020-11-05 13:14 UTC (permalink / raw)
  To: pandoc-discuss


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


I use below command to covert a.html to 

cat a.html 
| pandoc --atx-headers -f html-native_divs-native_spans -t markdown_strict -s --eol=lf --extract-media=./images >> a.md

image path i got in markdown file is like below.

![](images\0.jpg)

My question is is there any way that I could force use slash instead of 
backslash.

-- 
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/0332c466-66d9-4f10-b75d-8ebc1a0bd12an%40googlegroups.com.

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

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

* Re: [Windows] html to markdown convertion how to avoid backslash image path?
       [not found] ` <0332c466-66d9-4f10-b75d-8ebc1a0bd12an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2020-11-06 18:07   ` John MacFarlane
  0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2020-11-06 18:07 UTC (permalink / raw)
  To: Jiapeng Li, pandoc-discuss


One way would be to use a lua filter that rewrites the
image target.

Jiapeng Li <gapleehit-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> I use below command to covert a.html to 
>
> cat a.html 
> | pandoc --atx-headers -f html-native_divs-native_spans -t markdown_strict -s --eol=lf --extract-media=./images >> a.md
>
> image path i got in markdown file is like below.
>
> ![](images\0.jpg)
>
> My question is is there any way that I could force use slash instead of 
> backslash.
>
> -- 
> 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/0332c466-66d9-4f10-b75d-8ebc1a0bd12an%40googlegroups.com.


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

end of thread, other threads:[~2020-11-06 18:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-05 13:14 [Windows] html to markdown convertion how to avoid backslash image path? Jiapeng Li
     [not found] ` <0332c466-66d9-4f10-b75d-8ebc1a0bd12an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-11-06 18:07   ` John MacFarlane

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