max-heller / mdbook-pandoc

A mdbook backend powered by Pandoc.
Apache License 2.0
107 stars 9 forks source link

Download remote images that pandoc doesn't handle on its own #24

Closed max-heller closed 11 months ago

max-heller commented 11 months ago

Closes #18

Pandoc currently doesn't support using URLs with paths that do not have standard image extensions (e.g. .png, .svg) as image destinations.

For example, pandoc will not process the following GitHub actions badge from shields.io:

![Build](https://img.shields.io/github/actions/workflow/status/max-heller/mdbook-pandoc/ci.yml?style=flat-square) 

This implements a heuristic fix to download images that pandoc is known not to support.