Figure Caption to behave like Jupyter Book

Hi there, is there a way to add picture description, caption, or even called legend? And is there a way to letter reference it?

I could only found this solution, however, manually editing figure number is not a good alternative. https://towardsdev.com/3-ways-to-add-a-caption-to-an-image-using-markdown-f2ca30562be6

Just like jupyter-book?
https://jupyterbook.org/content/figures.html