diff --git a/src/cmd/build/index.ts b/src/cmd/build/index.ts index 751917ad..6c1d59ce 100644 --- a/src/cmd/build/index.ts +++ b/src/cmd/build/index.ts @@ -166,6 +166,12 @@ function builder(argv: Argv) { type: 'boolean', group: 'Build options:', }) + .option('need-to-sanitize-html', { + default: true, + describe: 'Enable sanitize html', + type: 'boolean', + group: 'Build options:', + }) .check(argvValidator) .example('yfm -i ./input -o ./output', '') .demandOption( diff --git a/src/models.ts b/src/models.ts index 2f78c192..f037442c 100644 --- a/src/models.ts +++ b/src/models.ts @@ -43,6 +43,7 @@ interface YfmConfig { resources?: Resources; yandexCloudTranslateFolderId: string; yandexCloudTranslateGlossaryPairs: YandexCloudTranslateGlossaryPair[]; + needToSanitizeHtml: boolean; } export interface YfmArgv extends YfmConfig {