Skip to content
Esc
navigateopen⌘Jpreview
On this page

template-definition-prompt-unmatched

Reports prompt Template Directive boundaries that do not form a matching pair.

← All Rules

What it does

Reports a prompt-start or prompt-end boundary without the matching opposite boundary and identifier.

Why it matters

Matching boundaries identify one authoring instruction that must be resolved before the document is complete.

Examples

Non-passing

# {{title}}

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

Write the summary.

Passing

# {{title}}

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

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

When it applies

This Rule belongs to the configurable document-types group. Prompt boundaries are matched in document order while the Template definition is compiled.

References

See Presswork Configuration for Templates and src/template.ts for prompt-boundary matching.