-
Notifications
You must be signed in to change notification settings - Fork 28
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
Local .md file rendered as plain text on Linux #93
Comments
The mime-type does not always get picked up properly. Can you try the work-around number 2?
|
Same result with If I refresh the file with Web Developer Tools open, I get a "Error: An unexpected error occurred" in the console. But not sure how to debug this beyond that. |
On the If the issue happens just on the page, which seems to be the case, there might be a hint as to where the error happens on the line with the error message (usually in file:line:column format), or a way to expand the message to see a full traceback of the error. You could also try to deactivate the extensions from the add-on configuration page, by unticking all checkboxes. |
Clicking Inspect on the Markdown Viewer opens a new dev-tools window which doesn't show anything, since there's no document loaded there. Loading or refreshing the .md file in another tab doesn't affect this window, and I don't see how to load the file there. There's a line near the top that says "about:blank", but it's not editable. FWIW, the error that shows up in the regular dev tools console (in the same tab as the file) has "undefined" on the right. Is that where the file/line is supposed to be? I've tried disabling all other extensions. It doesn't make any difference. |
Yes it’s basically showing errors for add-on background pages/threads − this add-on doesn’t have one − but also shows other general add-on errors, such as permissions etc. You might have seen a message in the console when reloading the page but nothing more.
Yes :( |
Could you try the following options (should be in order of increasing effort):
|
I've meanwhile upgraded to FF 101, btw.
Which produces the following HTML in the dev tools: <html><head><link rel="stylesheet" href="resource://content-accessible/plaintext.css"></head><body><pre># Headline
text
</pre></body></html>
|
A couple more data points:
|
Thanks for checking. So to summarise:
This all means it’s a bug while rendering the file, but I must say it’s a little hard to debug like that, without being able to reproduce on my side and without any kind of backtrace. |
I've tried starting from the minimal extension and gradually adding back parts of the full one. AFAICT, the error is in the |
Ubuntu 20.04, Firefox 100.0 installed manually to
/opt/
from web download, Markdown Viewer Webext 1.8.1When I try to load a local .md file, the file loads and is displayed (no download dialog), but renders as plain text, and isn't formatted. Same result with any local .md file.
I've followed the instructions to configure the MIME type, except I used
/usr/local/share/
instead of~/.local/share/
. This is my MIME file:IIRC, it worked correctly on an earlier version of FF, back when I set it up. I haven't used it in a while, but now it's not working, as described.
I have uBlock Origin, but disabling it makes no difference. Disabling all other extensions also doesn't help.
Are there some FF settings that may be blocking the extension scripts? What can I do to debug this further?
The text was updated successfully, but these errors were encountered: