Docs: improve comments, error checking and defaults

This commit is contained in:
Pieter Vander Vennet 2024-01-11 05:10:04 +01:00
parent 65da7155fa
commit ac9792ac43
6 changed files with 47 additions and 3 deletions

View file

@ -882,6 +882,10 @@ class MiscTagRenderingChecks extends DesugaringStep<TagRenderingConfigJson> {
)
}
if(json.icon?.["size"]){
context.enters("icon","size").err("size is not a valid attribute. Did you mean 'class'? Class can be one of `small`, `medium` or `large`")
}
if (json.freeform) {
if (json.render === undefined) {
context