brechtm / rinohtype

The Python document processor
http://www.mos6581.org/rinohtype
GNU Affero General Public License v3.0
498 stars 59 forks source link

Add ability to print alternative text instead of error message for rst :image: directive #409

Closed Timm638 closed 1 year ago

Timm638 commented 1 year ago

Is there an existing issue for this?

Your suggestion

When rinohtype fails to render an image with an web url, it currently renders the error message into the pdf.

minimal_README.pdf Source .rst: minimal_README.zip

I think that there should be an option to print the :alt: text of the image if one exists, since the HTML output of Sphinx does that: grafik

I'm adding a pull request for a fork of mine, which implements this suggestion and produces following result: minimal_README.pdf

Timm638 commented 1 year ago

Closed, since the pull request #410 was merged.