Git Product home page Git Product logo

Comments (7)

Thiht avatar Thiht commented on July 19, 2024

Can you run grep markdown /etc/mime.types in a command line and share the result? I removed the x-markdown mimetype support last time since I thought it was no longer supported, maybe it's used on Ubuntu... If that's the problem it's an easy fix.

from markdown-viewer.

gaul avatar gaul commented on July 19, 2024

No results:

$ grep -c markdown /etc/mime.types
0

from markdown-viewer.

Thiht avatar Thiht commented on July 19, 2024

Well that's not what I expected, what about these three commands:

grep md /etc/mime.types
xdg-mime query filetype randomfile.md # this one is important
file --mime-type randomfile.md # I'm not sure this one work as expected since it doesn't give anything conclusive on my laptop..

from markdown-viewer.

gaul avatar gaul commented on July 19, 2024
$ grep md /etc/mime.types
application/index.cmd
application/msaccess                            mdb
application/vnd.shana.informed.formdata
application/vnd.uplanet.listcmd
application/vnd.uplanet.listcmd-wbxml
application/x-md5                               md5
application/x-ms-wmd                            wmd
chemical/x-chemdraw                             chm
chemical/x-cmdf                                 cmdf
chemical/x-macromodel-input                     mmd mmod
chemical/x-mdl-molfile                          mol
chemical/x-mdl-rdfile                           rd
chemical/x-mdl-rxnfile                          rxn
chemical/x-mdl-sdfile                           sd sdf
chemical/x-mdl-tgf                              tgf
chemical/x-vmd                                  vmd

$ xdg-mime query filetype randomfile.md
text/x-markdown

$ file --mime-type randomfile.md
text/plain

from markdown-viewer.

Thiht avatar Thiht commented on July 19, 2024

Ok, the xdg-mime gives what I expected, thank you :) I'll fix that right away

from markdown-viewer.

Thiht avatar Thiht commented on July 19, 2024

Here you go, it should work with the version on master.

from markdown-viewer.

gaul avatar gaul commented on July 19, 2024

Confirmed working. #55 has some follow-up comments.

from markdown-viewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.