Skip to content

refactor!: rename the Pandoc describe format to pandoc-definition-list - #113

Merged
eitsupi merged 2 commits into
mainfrom
refactor/pandoc-definition-list-name
Nov 14, 2026
Merged

eitsupi merged 2 commits into
mainfrom
refactor/pandoc-definition-list-name

Conversation

@eitsupi

@eitsupi eitsupi commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

Rename the default description list format after the syntax it emits, Pandoc's definition lists. This prepares for a Quarto .definition-list div format, quarto-definition-list, to be added in a follow-up.

The plain name definition-list is meant to end up as an alias of quarto-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.

  • Rust API (breaking): DescribeFormat::DefinitionList is renamed to DescribeFormat::PandocDefinitionList. The old name is removed.
  • CLI and config: the value becomes pandoc-definition-list.
    • The former value definition-list is still accepted, on the command line and in _rd2qmd.toml, and selects the same format. It is hidden from --help.
    • Unless --quiet is given, it prints a deprecation warning saying it will select quarto-definition-list in a future release, and that pandoc-definition-list keeps the current output.
    • The JSON schema keeps the former value with deprecated: true, so existing config files keep validating in editors.
  • README, CLI help, and CHANGELOG are updated.

Tests

  • A CLI test checks that the former value gives the same output as the new one from both the command line and the config file, warns, stays silent with --quiet, and that an explicit new value on the command line overrides the config without a warning.
  • Snapshot files whose names derive from the format name are renamed; their contents are unchanged. The init config and schema snapshots show the new value.

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`.
@eitsupi
eitsupi merged commit 0e51a49 into main Nov 14, 2026
14 checks passed
@eitsupi
eitsupi deleted the refactor/pandoc-definition-list-name branch November 14, 2026 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant