Repository navigation
refactor!: rename the Pandoc describe format to pandoc-definition-list - #113
Merged
Merged
Conversation
Name the default description list format after the syntax it emits, Pandoc's definition lists, so it pairs with a future Quarto `.definition-list` div format. - Core: `DescribeFormat::DefinitionList` becomes `PandocDefinitionList`. This is a breaking change to the Rust API. - CLI and config: the value becomes `pandoc-definition-list`. The former value `definition-list` is still accepted as a hidden, deprecated variant that selects the same format and prints a warning unless `--quiet` is given. The JSON schema lists it with `deprecated: true`, so existing config files keep validating.
The former describe format value `definition-list` is planned to become an alias of a Quarto `.definition-list` format. Say so in the deprecation warning, the schema, the README, and the changelog, and point users who want to keep the current output to `pandoc-definition-list`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rename the default description list format after the syntax it emits, Pandoc's definition lists. This prepares for a Quarto
.definition-listdiv format,quarto-definition-list, to be added in a follow-up.The plain name
definition-listis meant to end up as an alias ofquarto-definition-list. Until then it stays a deprecated alias of the Pandoc format, so existing users' output does not change silently, and the warning tells them how to keep it.DescribeFormat::DefinitionListis renamed toDescribeFormat::PandocDefinitionList. The old name is removed.pandoc-definition-list.definition-listis still accepted, on the command line and in_rd2qmd.toml, and selects the same format. It is hidden from--help.--quietis given, it prints a deprecation warning saying it will selectquarto-definition-listin a future release, and thatpandoc-definition-listkeeps the current output.deprecated: true, so existing config files keep validating in editors.Tests
--quiet, and that an explicit new value on the command line overrides the config without a warning.initconfig and schema snapshots show the new value.