865 B
865 B
Use epub output to trigger downloadOrRead
in Text.Pandoc.Class
in order to test file:
URL-scheme handling.
There are no relative file:
URLs, so we cannot
test with an actual file, since we don't know the
current working directory. Instead, we use /dev/null
as a file that certainly exists, redirect stderr
to stdout and check that there is no warning.
% pandoc -M title=test -f native -t epub -o /dev/null 2>&1
[Para [Image ("",[],[]) [] ("file:/dev/null","")]]
^D
% pandoc -M title=test -f native -t epub -o /dev/null 2>&1
[Para [Image ("",[],[]) [] ("file:///dev/null","")]]
^D
% pandoc -M title=test -f native -t epub -o /dev/null 2>&1
[Para [Image ("",[],[]) [] ("file://localhost/dev/null","")]]
^D
% pandoc -M title=test -f native -t epub -o /dev/null 2>&1
[Para [Image ("",[],[]) [] ("file:lalune.jpg","")]]
^D