diff --git a/mercurial/help/templates.txt b/mercurial/help/templates.txt
index 89003c49315c507a5bab40ddd7f790791ec7c30c_bWVyY3VyaWFsL2hlbHAvdGVtcGxhdGVzLnR4dA==..6db47740e68122dd889e80e10e47d1fc622d2440_bWVyY3VyaWFsL2hlbHAvdGVtcGxhdGVzLnR4dA== 100644
--- a/mercurial/help/templates.txt
+++ b/mercurial/help/templates.txt
@@ -43,5 +43,5 @@
 
 .. functionsmarker
 
-Also, for any expression that returns a list, there is a list operator:
+Also, for any expression that returns a list, there is a list operator::
 
@@ -47,3 +47,3 @@
 
-- expr % "{template}"
+    expr % "{template}"
 
@@ -49,7 +49,7 @@
 
-As seen in the above example, "{template}" is interpreted as a template.
-To prevent it from being interpreted, you can use an escape character "\{"
-or a raw string prefix, "r'...'".
+As seen in the above example, ``{template}`` is interpreted as a template.
+To prevent it from being interpreted, you can use an escape character ``\{``
+or a raw string prefix, ``r'...'``.
 
 Some sample command line templates: