Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.
This repository was archived by the owner on May 29, 2026. It is now read-only.

markdown script parameters do not work. #1900

@pootow

Description

@pootow

Q: markdown scripts in this project support params and vars, but when i defined params using frontmatter, and use the defined params as {{ param }}, the value doesn't get replaced

A: The frontmatter parameters are being parsed but never connected to the variable interpolation system.

Problem: In mustache.ts:21, splitMarkdown() extracts frontmatter and discards it, only processing the content for variable interpolation. The frontmatter
parameters never make it into the variable resolution system.

Missing Connection: Frontmatter parameters should be merged with script parameters in template.ts:parsePromptScriptMeta() and made available to
vars.ts:parsePromptParameters().

Current Working Scenarios:

  • JavaScript scripts with script({ parameters: {...} })
  • CLI --var options
  • Environment variables

Non-Working: Frontmatter-defined parameters in markdown scripts.

The fix requires modifying template.ts to extract frontmatter parameters and merge them into the script's parameter definition before variable interpolation occurs.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions