mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2026-06-23 04:10:17 +00:00
89e441597d
The frontmatter validator was still the one left place that used Joi instead of the now widely used zod in HedgeDoc. Since zod can do validation, coercion and providing types based on the schema, the code could be drastically reduced compared to the old frontmatter validator. At the same time, the validator is now less strict. Custom fields are still allowed for people that want to add their own frontmatter tags which are unrelated to HedgeDoc. Furthermore, we now allow the complete set of RevealOptions for the slideOptions key instead of only a few handpicked ones. Fixes #5946 Signed-off-by: Erik Michelson <github@erik.michelson.eu> Signed-off-by: Philip Molares <philip.molares@udo.edu>