Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 209914

script to add links to all images in markdown file

$
0
0

I have a workflow where I'm downloading Google Docs as docx, then processing them to markdown for export to other formats in the R environment.

When I convert to markdown with pandoc_convert, I get embedded images, but they're not linked. I want to add link syntax similar to this post,

i.e. I want this (not linked): ![m'lady](https://i.imgur.com/v8IVDka.jpg)

m'lady

to be (linked): [![m'lady](https://i.imgur.com/v8IVDka.jpg)](https://i.imgur.com/v8IVDka.jpg)m'lady

for every image in a document. How to do?


Viewing all articles
Browse latest Browse all 209914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>