Support %config.*% Markdown placeholders
This commit is contained in:
parent
8cb37d38ba
commit
34ae8e8812
@ -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);
|
return str_replace(array_keys($variables), $variables, $markdown);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user