diff --git a/README.md b/README.md index 5df431c..575f8cb 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,7 @@ Usage: pandiff [OPTIONS] FILE1 FILE2 -h, --help --highlight-style=STRING --lua-filter=FILE + --template=STRING --mathjax=BOOL --mathml=BOOL -o, --output=FILE diff --git a/src/cli.ts b/src/cli.ts index ea54071..df2f5a7 100755 --- a/src/cli.ts +++ b/src/cli.ts @@ -40,6 +40,7 @@ const optionDefinitions: commandLineArgs.OptionDefinition[] = [ {name: 'help', alias: 'h', type: Boolean}, {name: 'highlight-style', type: String}, {name: 'lua-filter', type: File, multiple: true}, + {name: 'template', type: String}, {name: 'mathjax', type: Boolean}, {name: 'mathml', type: Boolean}, {name: 'output', alias: 'o', type: File}, diff --git a/src/index.ts b/src/index.ts index 0ed429a..f6203a3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -419,6 +419,7 @@ async function postrender(text: string, opts: pandiff.Options = {}) { opts, 'highlight-style', 'output', + 'template', 'pdf-engine', 'metadata-file', 'reference-doc', @@ -470,6 +471,7 @@ namespace pandiff { // eslint-disable-line help?: boolean; 'highlight-style'?: string; 'lua-filter'?: File[]; + template?: string; output?: File; 'pdf-engine'?: string; 'reference-links'?: boolean;