-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A link referencing another document makes the preview crash #35
Comments
Hi can you tell me which version of Formiko and which vesion of docutils you have? pip3 list | grep -E 'formiko|docutils' |
Sure, sorry I didn't include this information from the start. Formiko is from the debian package of bullseye: 1.3.0-2 (package web page) I also tried with formiko install from pip3 : ❯ pip3 list | grep -E 'formiko|docutils'
docutils 0.14
docutils-html5-writer 1.0.3
docutils-tinyhtmlwriter 1.3.0
formiko 1.4.3 And it yield almost the same error
Other parameters :
The error seems to happen also with empty URL. Thanks in advance for digging into it 🙏 |
TL;DR: For those coming to the issue: Add an anchor to the link as workaound. I can reproduce this bug as well. I'm also on Debian 11. Formiko is at 1.3.0 with Debian revision -2 (1.3.0-2)
An additional observation:
Might be unrelated; formiko spits out on the console when loading the test document, (as shown above, with all bad links commented out):
However, this might be a red herring. Many kudos for formiko! Its is a very helpful tool :) |
Thank you very much for great report. It seems that there is problem in recommonmark library. At this moment, this problem is solved with replacing markdown library which Formiko use. I was plan update Formiko to new 1.4.3 release version to debian testing, but this error is still here. For a few time, please use formiko from this repository, from master branch. I try to release new 1.5.0 version out as soon as possible. |
(FWIW, I made a local package of recommonmark 0.7.1 -- issue still triggers in that version. However, upstream of recommonmark deprecated the usage of this library, so I guess hopes that this will be fixed are slim...) If you need a sponsor in Debian, ping me (tobi (at) debian.org). I'm usually not doing python packages, but for this I'll make an exception :) |
Try this mardown content example :
That produce the following error in the preview pane :
If I preprend the link href with an "http://" or a "#" the exception disappear.
I think this is very problematic to not be able to use reference to other document in the same folder/tree.
PS: thank you very much for this software that is working really fine for me except for this bug 🙏
The text was updated successfully, but these errors were encountered: