useblocks / sphinx-simplepdf

A simple PDF builder for Sphinx documentations
https://sphinx-simplepdf.readthedocs.io
MIT License
36 stars 16 forks source link

Code block caption prints as normal text in PDF #67

Open sachin-suresh-rapyuta opened 1 year ago

sachin-suresh-rapyuta commented 1 year ago

I have a code block caption, which should ideally print the text in italics, above the code.

.. code-block:: yaml
        :caption: Pickers can perform the job only at the PICKING location

        loading: false
        picking: true
        unloading: false

But in PDF, it shows as a normal paragraph center-aligned; which looks odd.

PDF output:

image