markdown-viewer icon indicating copy to clipboard operation
markdown-viewer copied to clipboard

Handle mime types

Open brian6932 opened this issue 3 years ago • 1 comments

This extension should automatically handle the following mimes: text/markdown text/x-markdown Currently in Firefox 102, it prompts the file picker on these mimes, while it should just open in the extension. Yes I am aware that you can set your browser to handle markdown FTAs, however, this is not a proper solution.

brian6932 avatar Jul 28 '22 10:07 brian6932

This is not supported by Firefox. Progress is tracked in this bugzilla bug. So I’m afraid the non-proper solution is the only one that has the merit of working, for now.

Note that our workaround on Linux (option 2) does not change file type associations however (i.e. which program opens which file type), but forces Firefox to consider markdown files as text/plain, and we then match all markdown file extensions. It only relies on modifying Firefox configuration, and nothing else.

Cimbali avatar Jul 28 '22 16:07 Cimbali