- by Firefox user 15884064, 7 months agoRated 4 out of 5The syntax highlighting options are nice, but if you have an URL in a code block, the double-slash is interpreted as a JS comment.
- by Firefox user 15126385, 2 years agoRated 4 out of 5It took me a while to even get it to do anything. I would appreciate proper instructions on how to use the extension.
This is not a problem with this extension, rather with Firefox. Whenever I open markdown files in firefox, it just wants to download them. I ended up having to change the mimetype text/plain to also include the extensions .md and .markdown. See here: https://superuser.com/questions/696361/how-to-get-the-markdown-viewer-addon-of-firefox-to-work-on-linux/1175837#1175837
The way the superuser article fixes the problem involves making all markdown files part of the text/plain mimetype but other apps on KDE (and possibly other 'DEs) use the text/markdown mimetype differently than text/plain. So I went into about:config and changed helpers.private_mime_types_file to a custom file (e.g. ~/.firefox-mime.types) to separate firefox's mimetypes from my system. I then added "text/plain md markdown" in that file. The problem is due to the way firefox handles files and mimetypes.
I am unable to change the code style in the markdown-viewer menu which is very frustrating, the markdown style does work.
- by Firefox user 15106913, 2 years agoRated 4 out of 5It works. For those like me using Linux, you should read the README in https://github.com/KeithLRobertson/markdown-viewer/blob/master/README.md#installing-on-linux At first it seemed like it was a no go but after reading the docs and following the procedure, the extension works just fine.
- by geen naam, 2 years agoRated 4 out of 5This is pretty good and does what I want. You can open a a markdown (.md) file on your machine in Firefox. There are multiple ways to style the page.
By default a small enlargable box is top left and you can click on this to get 3 options.
The first allows you to switch between the default and GitHub markdown style. (no utf-8 on one?).
The second has a decent list of styles that would be good but this didn't work for me.
The final option is a button to download the file as HTML. This works though the HTML is rather messy as it has all the code and styling for the dropdown box. You can remove the dropdown box though in the app’s settings though then of course you can’t click it to save as HTML. However you can delete the excess code from the file if you want to, though it's an extra step.
At least three other ways exist to to style pages. One is to write custom styles in the text box on the apps settings page. This is good for default styles.
Another way is to link to an external CSS file (put the link at the bottom of the page otherwise it won't work properly). You can also use an embedded stylesheet anywhere on the page (between two style tags).
All in all this is a great little add-on. Loses a mark from me because the dropdown styles didn't work for some reason and the generated HTML was messy.
- by Philipp Bielefeldt, 3 years agoRated 4 out of 5It just displays .md files. Plain and simple – exactly what I searched for (there are MD editors with far more bells and whistles, if you want to, this one is totally minimalist).
Unfortunately, Firefox (at least under openSUSE Linux) has an issue with the MIME type. The solution linked here solves it: https://github.com/KeithLRobertson/markdown-viewer/issues/2
Oh, and btw, it only works (for me) with UTF-16, not UTF-8 as long as you don't manually add it a BOM, which is somewhat unusual … (can be fixed with " sed -i '1s/^/\xef\xbb\xbf/' foo ")
- by DanBe, 4 years agoRated 4 out of 5Presque parfait !
1) Il faut remplacer les sauts de ligne Linux (LF) par des sauts de ligne Microsoft (CR/LF).
2) Le rendu HTML est parfois assez différent de ce qu'on obtient avec un convertisseur standard.
Mais le résultat est néanmoins très acceptable.
Developer responseposted 4 years agoThank you for your feedback.
2) This addon uses a standard converter, markdown-it. I think the issue is not the conversion. Probably the Markdown is simply not *styled* the same as you are used to. Version 1.2.0 adds a feature where you can apply custom styling (CSS) for local markdown files; in the future I plan to add a feature to support standardized and custom styling for all markdown files. Eventually.
1) I am not sure what you mean. I was able to view Markdown with Linux (LF) line endings, and they look just the same. Please open an issue on the project in github and describe the problem you are seeing.