diff --git a/Documentation/sphinx/convert_template.sed b/Documentation/sphinx/convert_template.sed
index d53bb8220a26..0553eabeac79 100644
--- a/Documentation/sphinx/convert_template.sed
+++ b/Documentation/sphinx/convert_template.sed
@@ -4,10 +4,10 @@
#
# Use "$bq" instead of "`" so that pandoc won't mess with it.
#
-s%\([^<(]\+\)()%:c:func:$bq\1$bq%g
-s%\([^<(]\+\)%:c:func:$bq\1$bq%g
-s%struct *\([^<]\+\)%:ref:$bqstruct \1$bq%g
-s%\([^<]\+\)%:ref:$bqstruct \1$bq%g
+s%\([^<(]\+\)()%:c:func:$bq\1()$bq%g
+s%\([^<(]\+\)%:c:func:$bq\1()$bq%g
+s%struct *\([^<]\+\)%:c:type:$bq\1$bq%g
+s%\([^<]\+\)%:c:type:$bq\1$bq%g
#
# Wrap docproc directives in para and code blocks.
#