{{- /* Define more precise regex patterns for each dynamic value type */ -}} {{- /* Note: markdownify converts & to & so we need to match that */ -}} {{- $paramsRegex := `&\{[^}]+\}` -}} {{- $envsRegex := `\$\{[^}]+\}` -}} {{- $secretsRegex := `@\{[^:]+:[^}]+\}` -}} {{- /* Get the inner content and markdownify it */ -}} {{- $code := .Inner | markdownify -}} {{- /* Apply replacements for each type of dynamic value */ -}} {{- /* Replace parameters with span class="param" */ -}} {{- $code = replaceRE $paramsRegex `$0` $code -}} {{- /* Replace environment variables with span class="env" */ -}} {{- $code = replaceRE $envsRegex `$0` $code -}} {{- /* Replace secrets with span class="secret" */ -}} {{- $code = replaceRE $secretsRegex `$0` $code -}} {{- /* Output the processed code */ -}} {{ $code | safeHTML }}