ickc / pantable

CSV Tables in Markdown: Pandoc Filter for CSV Tables
https://ickc.github.io/pantable/
BSD 3-Clause "New" or "Revised" License
86 stars 15 forks source link

incorrect path when --extract-media is used in conjunction with #53

Open ickc opened 4 years ago

ickc commented 4 years ago

When --extract-media is used in conjunction with this filter, the resulting path with point to only media/... ignoring the specified parent directory.

A semi-reproducible example would be to create a docx file with an image in a table (TODO: create an example file here), and then run

# makefile syntax
%.md: %.docx
    pandoc -s -o $@ $< --extract-media=$(@D)/$* --id-prefix=$* -F pantable2csv

P.S. It might as well be an upstream bug.