Fixed pandoc command arguments (#790)

* Fixed pandoc command arguments

`--base-header-level` throws a new export error because it is deprecated, now we should use `--shift-heading-level-by`

* Adjusted default and min value for base-header

Co-authored-by: Tobias Frisch <thejackimonster@gmail.com>
This commit is contained in:
DarkRedman 2021-04-10 14:58:00 +02:00 committed by GitHub
parent 173531ef2c
commit 49f0c298c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,9 +108,9 @@ class pandocSettings(markdownSettings):
# pandoc v1 only
"normalize": pandocSetting("--normalize", "checkbox", "",
qApp.translate("Export", "Normalize the document (cleaner)")),
"base-header": pandocSetting("--base-header-level=", "number", "",
"base-header": pandocSetting("--shift-heading-level-by=", "number", "",
qApp.translate("Export", "Specify the base level for headers: "),
default=1, min=1),
default=0, min=0),
"disable-YAML": pandocSetting("EXT-yaml_metadata_block", "checkbox", "",
qApp.translate("Export", "Disable YAML metadata block.\nUse that if you get YAML related error.")),