Witiko / markdown

:notebook_with_decorative_cover: A package for converting and rendering markdown documents in TeX
http://ctan.org/pkg/markdown
LaTeX Project Public License v1.3c
331 stars 31 forks source link

Add first-class support for YAML documents #452

Closed Witiko closed 2 weeks ago

Witiko commented 5 months ago

The processing of YAML documents can often be the primary function of the Markdown package, see my TUG 2024 preprint Markdown themes in practice that discusses just this aspect of the Markdown package. Despite this, our support for YAML documents has a number of weak points:

  1. Invalid YAML documents are processed as markdown text.
  2. The commands \markdownSetup, \setupmarkdown, and \markdownInput and the environments \markdownBegin ... \markdownEnd, \begin{markdown} ... \end{markdown}, and \startmarkdown ... \stopmarkdown are used to process YAML files, which is a confusion name choice.

For these workflows, it would make sense to

  1. Provide an option that would cause us to produce an error when an invalid YAML document has been provided.
  2. Provide better-named aliases for the package files, commands, and environments for the processing of YAML files.

Tasks