mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-17 11:22:28 +12:00
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:
parent
173531ef2c
commit
49f0c298c3
|
@ -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.")),
|
||||
|
||||
|
|
Loading…
Reference in a new issue