keewis / blackdoc

run black on documentation code snippets
https://blackdoc.readthedocs.io
MIT License
47 stars 4 forks source link

">>>" raises an error when encountered in rst files. #165

Closed KelSolaar closed 1 year ago

KelSolaar commented 1 year ago

Hello,

I'm starting to test blackdoc and I came across this issue with one of our RST files:

Features
--------

Most of the objects are available from the ``colour`` namespace:

.. code-block:: python

    >>> import colour
error: cannot format /Users/kelsolaar/Documents/Development/colour-science/colour/docs/index.rst: Cannot parse: 40:0: >>> import colour

Cheers,

Thomas

keewis commented 1 year ago

thanks for the report, @KelSolaar. I think this is a duplicate of #150, which has been fixed in #151 (but not yet released). Can you confirm?

keewis commented 1 year ago

same as in #166: this should be fixed in the new release