Skip to content
Esc
navigateopen⌘Jpreview
On this page

template-directive-unresolved

Reports a presswork Template Directive left in a completed typed document.

← All Rules

What it does

Reports any HTML comment containing a presswork: Template Directive in a completed typed document.

Why it matters

Template Directives are authoring instructions or optional boundaries, not completed document content.

Examples

Non-passing

# Choice

<!-- presswork:prompt-start summary -->

Write the decision summary.
<!-- presswork:prompt-end summary -->

Passing

# Choice

We will use the selected approach.

When it applies

This Rule belongs to the configurable document-types group. It checks recognized documents that match a loaded Document Type; Template support files keep their directives.

References

See Create a Document Draft for draft completion and src/template.ts for completed-document evaluation.