Comment Stripping¶
HTML comments are stripped before any other processing stage.
Automatic Stripping¶
Comments are removed during PM.parse:
After parsing:
Multiline Comments¶
Multiline comments are fully removed:
Comments Before Metadata¶
Comments before the YAML front-matter are stripped first, so the metadata parser sees clean input:
Direct Access¶
The comment stripping method is available as a standalone utility:
Use Cases¶
- Editor notes -- Leave comments for prompt authors that don't appear in the rendered output
- Disabled sections -- Temporarily comment out parts of a prompt
- Documentation -- Annotate prompt files without affecting the AI input