Skip to content

Variable Substitution Transform

VariableSubstitutionTransform replaces {{key}} placeholders with values from config.variables.

Rules

  • surrounding whitespace is ignored, so {{ title }} matches title
  • unknown variables are left unchanged
  • unclosed placeholders are left unchanged
  • fenced code blocks are preserved verbatim
  • inline code spans are preserved verbatim

Example

Config:

variables:
  title: Renderflow Guide

Input:

# {{title}}
Use `{{title}}` in code.

Output:

# Renderflow Guide
Use `{{title}}` in code.