Markdown Viewer Webext 的评价
Markdown Viewer Webext 作者: Cimbali
17 条评价
- 评分 4 / 5来自 BluGo,1 年前Works as expected, I have some issues with editing the CSS but I ended up not caring as much.
- 评分 4 / 5来自 白墙壁,3 年前Why was I prompted for save option when I open .md file even after installed this addon??
开发者回应
发布于 3 年前Unfortunately this issue is linked to how Firefox on Linux detects and handles file types. There’s nothing that can be done from within the addon, but our README does provide a few ways to configure Firefox or your system to fix the issue. To allow addons to directly handle file types we are waiting on https://bugzilla.mozilla.org/show_bug.cgi?id=1457500 - 评分 4 / 5来自 darccyy,3 年前
- 评分 4 / 5来自 valvaldon,3 年前On Windows (8.1) this extension works impeccably. It is indispensable for markdown viewing around the web and on local files.
That being said, I had issues making it work on Ubuntu (21.10). None of the solutions on the README page seemed to work (although it did previously). Finally (after many hours) I found the culprit: the snap installation of Firefox. After removing this problematic snap installation and reinstalling Firefox via get-apt, it started working again.
If I had this extension on Windows only, then I'd give it 5 stars hands down. However, the lack of a streamline installation on Linux systems brings it down to 4 stars. Nonetheless, it is an excellent extension imperative for markdown files.开发者回应
发布于 3 年前Thanks for your feedback @valvaldon. snap was quite new at the time and we weren’t sure why it messed with the extension − but this has quickly been fixed, and the docs have been updated to reflect how to handle mime types correctly on Linux, with or without snap. - 评分 4 / 5来自 dj,4 年前
- 评分 4 / 5来自 Firefox 用户 15884064,4 年前The syntax highlighting options are nice, but if you have an URL in a code block, the double-slash is interpreted as a JS comment.
开发者回应
发布于 4 年前Hi, thanks for the feedbkack. Can you maybe post a small example to reproduce this on https://github.com/KeithLRobertson/markdown-viewer/issues ? - 评分 4 / 5来自 Ziah,6 年前It 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. - 评分 4 / 5来自 Firefox 用户 15106913,6 年前It 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.
- 评分 4 / 5来自 geen naam,6 年前This 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. - 评分 4 / 5来自 Milly,6 年前
- 评分 4 / 5来自 Cyd,6 年前Great extension.
Please, can you add markdown type mime "text/markdown" support (https://tools.ietf.org/html/rfc7763).
Thanks - 评分 4 / 5来自 Firefox 用户 14596245,6 年前
- 评分 4 / 5来自 Firefox 用户 14277084,7 年前Add-on works fine on Linux for local .md files using the mime type mod.
But where do you make the equivalent change for Firefox on OS-X? - 评分 4 / 5来自 Firefox 用户 13895268,7 年前
- 评分 4 / 5来自 Philipp Bielefeldt,7 年前It 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 ") - 评分 4 / 5来自 DanBe,7 年前Presque parfait !
Petits bémols:
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.开发者回应
发布于 7 年前Thank 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.