dzhu / rstfmt

A formatter for reStructuredText
MIT License
72 stars 20 forks source link

`unknown option: "caption"` error for `code-block` directive #32

Open julian-poidevin opened 1 year ago

julian-poidevin commented 1 year ago

When using this code :

.. code-block:: console
   :caption: Cloning the |comintboardimg| repository
   :name: clone-com-int

   $ git clone https://gitlab.com/xxxx/xxxx.git
   $ cd comboard-linux-image

And running rstfmt on my source folder using rstfmt source, I'm having the following error :

:40: (ERROR/3) Error in "code-block" directive:
unknown option: "caption".

This is also happening with .. code-block:: equivalent .. sourcecode::