Support for markup files

This commit is contained in:
2020-04-30 20:21:09 -04:00
parent 718169345e
commit bd9e56829c
10 changed files with 224 additions and 200 deletions

View File

@@ -19,7 +19,7 @@
#define EPILOG "Made by simon987 <me@simon987.net>. Released under GPL-3.0"
static const char *const Version = "2.0.0";
static const char *const Version = "2.1.0";
static const char *const usage[] = {
"sist2 scan [OPTION]... PATH",
"sist2 index [OPTION]... INDEX",
@@ -136,6 +136,11 @@ void initialize_scan_context(scan_args_t *args) {
ScanCtx.mobi_ctx.log = _log;
ScanCtx.mobi_ctx.logf = _logf;
// TEXT
ScanCtx.text_ctx.content_size = args->content_size;
ScanCtx.text_ctx.log = _log;
ScanCtx.text_ctx.logf = _logf;
ScanCtx.threads = args->threads;
ScanCtx.depth = args->depth;