I had to manually edit my ~/.mozilla/firefox/<PROFILE>/mimeTypes.rdf
. This review of the addon says:
For linux users, try to add "md" to .mozilla/*.default/mimeTypes.rdf this line : mdin text/plain section :)
Hmm. I couldn't find a text/plain
section, but I found this page is helpful:
If there is not yet an existing RDF node for 'text/plain' add it, and add "md" as a file extension.
<RDF:Description RDF:about="urn:mimetype:text/plain"
NC:value="text/plain"
NC:fileExtensions="md"
NC:description="Text Document">
<NC:handlerProp RDF:resource="urn:mimetype:handler:text/plain"/>
</RDF:Description>
However, what I ended up doing was:
<RDF:Description RDF:about="urn:mimetype:text/plain; charset=utf8"
NC:value="text/plain; charset=utf8"
NC:handleInternal="true"
NC:description="Markdown Document">
<NC:fileExtensions>md</NC:fileExtensions>
<NC:fileExtensions>mkd</NC:fileExtensions>
<NC:fileExtensions>mdown</NC:fileExtensions>
<NC:fileExtensions>markdown</NC:fileExtensions>
<NC:handlerProp RDF:resource="urn:mimetype:handler:text/plain; charset=utf8"/>
</RDF:Description>
It seemed to be the NC:handInternal="true"
that did the trick. Interestingly, it seems it does not work with the text/markdown
or text/x-markdown
MIME types. The charset=utf8
is because I write all my Makefiles in Unicode.
One have to restart Firefox after modifying the
mimeTypes.rdf
file for changes to be applied. – iurii – 2014-08-06T15:37:01.660I just installed the Firefox Markdown Viewer on Kubuntu 12.04 and it worked perfectly out of the box. No tweaks required. – MountainX – 2015-01-17T20:17:13.483
Did not work for me in Ubuntu 16.04 with FF 54.0. @Brad's solution did work. – Keith Robertson – 2017-08-11T23:41:57.617
@KeithRobertson Yeah, this solution is dated. You see it's from 3-1/2 years ago... – Kazark – 2017-08-14T17:18:47.617