Open alightwing opened 1 year ago
For Markdown support, rinohtype currently depends on recommonmark, which was deprecated some time ago. Therefore, we'll need to migrate to another Markdown-to-docutils parser. Candidates are:
Related: #265
I replaced recommonmark with MyST. Please try with the current development version of rinohtype:
pip install https://github.com/brechtm/rinohtype/archive/refs/heads/master.zip
Now rinoh will render your document, but the relative links aren't handled properly. I'm not sure whether this requires a different syntax or is just a bug. The markdown-it command line tool does seem to handle them fine (versus the myst-docutils-* tools), so I'm thinking this would be a MyST bug. Please file a bug report with that project regarding this issue.
Is there an existing issue for this?
Sphinx or rinoh output
Source files
https://github.com/VisualMeaning/development-texts/blob/master/README.md
We have a repository with a bunch of markdown text documents, where the README.md acts as an index page that links to interesting documents inside the same repository. I grabbed this README.md to throw into rinohtype to test how it would convert markdown to PDF and got the above error.
Further prodding indicates that if you cut that README down to just the following line:
It fails identically, indicating it's unhappy with relative links. Changing the above to:
causes it to run successfully.
Versions