LilSpazJoekp / docstrfmt

A formatter for reStructuredText
MIT License
23 stars 13 forks source link

Image substitutions aren't formatted correctly #55

Open LilSpazJoekp opened 11 months ago

LilSpazJoekp commented 11 months ago

Example:

|GitHub forks|

.. |GitHub forks| image:: https://img.shields.io/github/forks/praw-dev/prawcore.svg?style=social&label=Fork&maxAge=2592000
    :alt: GitHub forks
    :target: https://GitHub.com/praw-dev/prawcore/network/
paulsuh commented 3 months ago

I just hit this one as well. The errors I got are :

WARNING: File "/path/to/file/index.rst":
Substitution definition "Python versions badge" empty or invalid.

Is there a place where I can do a quick fix-up and send in a PR? I took a walk through the code but nothing obvious stood out. The dynamic Sphinx loading is way more work than I want to pick up right now.