T028warning

Directive overwrites content

An element has children that p-text or p-html will replace.

p-text and p-html set the element's whole content, so its existing children are discarded at runtime and only mislead readers.

Remove the children, or drop the directive.

$ piko explain T028

Build output ends each diagnostic with a link to this page, and editors using the Piko language server link the code under the squiggle. Look for CodeDirectiveOverwritesContent in Piko's source to see where it is reported.