diff --git a/lib/Pico.php b/lib/Pico.php index 8cbc4b1..b5d2c2a 100644 --- a/lib/Pico.php +++ b/lib/Pico.php @@ -1495,6 +1495,13 @@ class Pico } } + // replace %config.*% + foreach ($this->config as $configKey => $configValue) { + if (is_scalar($configValue) || ($configValue === null)) { + $variables['%config.' . $configKey . '%'] = (string) $configValue; + } + } + return str_replace(array_keys($variables), $variables, $markdown); }