diff --git a/README.rst b/README.rst
index 6eed72389a86..4a6eb2525f6b 100644
--- a/README.rst
+++ b/README.rst
@@ -30,7 +30,7 @@ Getting Started
 
 To fetch the sources, build and install:
 
-::
+.. code::
 
   git clone https://git.libcamera.org/libcamera/libcamera.git
   cd libcamera
@@ -120,6 +120,8 @@ Using GStreamer plugin
 To use GStreamer plugin from source tree, set the following environment so that
 GStreamer can find it. This isn't necessary when libcamera is installed.
 
+.. code::
+
   export GST_PLUGIN_PATH=$(pwd)/build/src/gstreamer
 
 The debugging tool ``gst-launch-1.0`` can be used to construct a pipeline and
