aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-08-28 13:46:46 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-08-28 13:46:46 -0400
commit09273fec0aabb0ff9f30b2f2d3c5e58ff5c2555d (patch)
treeff4c6f10cddebe2e29273ecbc31baf2a99af0c66
parentaa9116737b7c3f7e9569a265d992f98270629ccd (diff)
downloadstasis-pandoc-improvements.tar.gz
Remove options that are created dynamicallypandoc-improvements
-rw-r--r--src/stasis_indexer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stasis_indexer.c b/src/stasis_indexer.c
index 893d739..25f0fa7 100644
--- a/src/stasis_indexer.c
+++ b/src/stasis_indexer.c
@@ -352,9 +352,6 @@ int indexer_make_website(struct Delivery *ctx) {
// Converts a markdown file to html
strcpy(cmd, "pandoc ");
strcat(cmd, pandoc_versioned_args);
- strcat(cmd, "--standalone ");
- strcat(cmd, "-f markdown+alerts ");
- strcat(cmd, "-f markdown+autolink_bare_uris ");
if (have_css) {
strcat(cmd, "--css ");
strcat(cmd, css_filename);
@@ -761,6 +758,9 @@ int main(int argc, char *argv[]) {
if (isempty(rootdirs[i]) || !strcmp(rootdirs[i], "/") || !strcmp(rootdirs[i], "\\")) {
SYSERROR("Unsafe directory: %s", rootdirs[i]);
exit(1);
+ } else if (access(rootdirs[i], F_OK)) {
+ SYSERROR("%s: %s", rootdirs[i], strerror(errno));
+ exit(1);
}
}
}