diff --git a/package.json b/package.json index 5e46f5e..31d72d8 100644 --- a/package.json +++ b/package.json @@ -192,6 +192,11 @@ "default": false, "description": "Suppress node separators in preview." }, + "texinfo.preview.noNumberSections": { + "type": "boolean", + "default": false, + "description": "Do not display chapter and section numbers in preview" + }, "texinfo.preview.noValidation": { "type": "boolean", "default": false, diff --git a/src/options.ts b/src/options.ts index 36e83ab..bc2f6c9 100644 --- a/src/options.ts +++ b/src/options.ts @@ -64,6 +64,10 @@ export default class Options { return this.getBoolean('preview.noHeaders'); } + get noNumberSections() { + return this.getBoolean('preview.noNumberSections'); + } + get noValidation() { return this.getBoolean('preview.noValidation'); } diff --git a/src/utils/converter.ts b/src/utils/converter.ts index 1930fdc..b41bbc6 100644 --- a/src/utils/converter.ts +++ b/src/utils/converter.ts @@ -36,6 +36,7 @@ export default class Converter { const options = ['-o-', '--no-split', '--html', `--error-limit=${this.options.errorLimit}`, `--init-file=${this.initFile}`, '-D', `__vscode_texinfo_image_uri_base ${newPath}`]; this.options.noHeaders && options.push('--no-headers'); + this.options.noNumberSections && options.push('--no-number-sections'); this.options.noValidation && options.push('--no-validate'); this.options.noWarnings && options.push('--no-warn'); if (insertScript !== undefined) {