liran-funaro / sphinx-markdown-builder

A Sphinx extension to add markdown generation support.
https://pypi.org/project/sphinx-markdown-builder
MIT License
41 stars 19 forks source link

[FEAT] The unknown node type <figure: <image...>> in version 0.6.6 #23

Open mkondratyev85 opened 3 months ago

mkondratyev85 commented 3 months ago

Describe the bug I'm trying to use the matplotlib.shpinx.plot directive with the markdown builder similar how it is desribed in the #15 and fixed in #16. But when I try to build the markdown docs I see the:

WARNING: unknown node type:  <figure: <image...>> error.

The example of how I use the plot directive:

.. plot::

   import matplotlib.pyplot as plt
   import numpy as np

   xs = np.linspace(0, 10)
   plt.plot(xs, np.cos(xs))

Environment (please complete the following information):

If I build the html file - the output is build correctly. It seems like I'm using the markdown builder of the version that already has this fixed, but I still see this error. Do you have any ideas of what I might do wrong here?

liran-funaro commented 3 months ago

@mkondratyev85 Thank you for the report. I apologize for the delay in responding. Since plots were never supported by sphinx-markdown-builder, this would be considered a feature request rather than a bug. Currently, I'm prioritizing bug fixes and don't have plans to add new features in the near future. However, I will try to review this request when I have more time.