`--outline-tags` not working
The options containing the tags is overwritten with an empty object in https://gitlab.coko.foundation/pagedjs/pagedjs-cli/-/blame/master/bin/paged#L158 :
if (headless) {
let options = {}; // <--- sets options.outlineTags to undefined
if (options.html) {
file = await printer.html(input, options)
.catch((e) => {
console.error(e);
process.exit(1);
});
output = replaceExt(output, ".html");
} else {
options.outlineTags = !options.outlineTags ? [] : options.outlineTags.split(",");
spinner.succeed("Outlining");
file = await printer.pdf(input, options)
.catch((e) => {
console.error(e);
process.exit(1);
});
}
} else {
printer.preview(input);
}
Removing line 158 fixes this.