diff --git a/content/contribute/code-style-guide.md b/content/contribute/code-style-guide.md index de9402ea..3df47bac 100644 --- a/content/contribute/code-style-guide.md +++ b/content/contribute/code-style-guide.md @@ -178,21 +178,21 @@ For example, the following code block allows editing the key and secret fields. {{< editCode >}} ```ini {copy-lines="all"} [default] -aws_access_key_id = $$$$ -aws_secret_access_key = $$$$ +aws_access_key_id = $@$@ +aws_secret_access_key = $@$@ ``` {{}} To set a field as editable wrap a standard code block, including language highlighting hints in the `{{}}` shortcode. -Wrap any editable element in two dollar-sign characters (`$$`). +Wrap any editable element in dollar-sign followed by a at character (`$@`). ````go {{}} ```ini {copy-lines="all"} [default] -aws_access_key_id = $$$$ -aws_secret_access_key = $$$$ +aws_access_key_id = $@$@ +aws_secret_access_key = $@$@ ``` {{}} ```` diff --git a/themes/geekboot/layouts/shortcodes/editCode.html b/themes/geekboot/layouts/shortcodes/editCode.html index d5496b7b..0fe23793 100644 --- a/themes/geekboot/layouts/shortcodes/editCode.html +++ b/themes/geekboot/layouts/shortcodes/editCode.html @@ -1 +1 @@ -{{ replaceRE `\$\$(.*)\$\$` "" (.Inner | markdownify) | safeHTML }} +{{ replaceRE `\$\@(.*)\$\@` "" (.Inner | markdownify) | safeHTML }} \ No newline at end of file