diff --git a/docs/postgres.rst b/docs/postgres.rst
index bbf1b12a89a061506b99c21132c45a7ea78f735b..ca72131c6cb4636470003113ccd3f118242822e3 100644
--- a/docs/postgres.rst
+++ b/docs/postgres.rst
@@ -74,7 +74,8 @@ the original snapshot was taken, repeat the previous steps with a newer
 snapshot.
 
 To complete the conversion shut down the synapse server and run the port
-script one last time, e.g. if the SQLite database is at  ``homeserver.db`` run:
+script one last time, e.g. if the SQLite database is at  ``homeserver.db``
+run::
 
     python scripts/port_from_sqlite_to_postgres.py \
         --sqlite-database homeserver.db \