2ade53f268
when "none" inline tags will be wrapped in <p> --image, --audio and --video now accept the extensions to inline so what's possible to load isn't maintained here --lang is now referred to as --html --html and --body are mutually exclusive
11 lines
387 B
Bash
Executable file
11 lines
387 B
Bash
Executable file
rm -rf "example/test.html"
|
|
./cli.js --image jpg --audio mp3 --video mp4 --html en "example/*.gmi"
|
|
if cmp -s "example/test.html" "example/expected.html"; then
|
|
printf "PASS: test.html matches expected.html!\n"
|
|
else
|
|
printf "FAIL: test.html DOES NOT match expected.html!\n"
|
|
cmp "example/test.html" "example/expected.html"
|
|
diff "example/test.html" "example/expected.html"
|
|
exit 1
|
|
fi
|