-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to open local markdown file in firefox59.0.1 #54
Comments
I am a Chinese user and cannot use youtube. The video content is also not very user-friendly. |
Firefox does not support rendering of markdown documents, that's why file rendering is not supported in Markdown Viewer for Firefox. |
@simov Markdown Viewer Webext works fine on firefox |
No, it does not work for file URLs. From the first comment:
Related to this Cimbali/markdown-viewer#2 (comment) |
This plugin works for me in FF 59.0.2: https://github.com/painyeph/GitLabMarkdownViewer I would venture a guess that it has to do with:
I would submit a PR, but I don't really know how to browser extensions. Do you have recommendations on tutorials? I'd have to try chrome and ff. simov/markdown-viewer is superior because of the themes, so I would like to contribute here if possible. |
@njnygaard the extension you are linking to doesn't work with file URLs, for example |
That's interesting, it doesn't work on my end on Linux. |
Okay good to know. Yeah I would be frustrated if I tried it and it failed when I switched to my personal computer. I'm linking the gist from your video in case anyone else comes across this: https://gist.github.com/simov/4e4bb0a1ecbb45b92e23608388e60909 That file server is exactly what I need, I didn't know there was an npm package to view files. Perfect solution for me. Thanks! |
@njnygaard, would you explain to the lay person how to use this code to start a webserver? How do I set up that js to run passively, not have to launch it every time? // server.js
var express = require('express')
var serveIndex = require('serve-index')
var serveStatic = require('serve-static')
var app = express()
app.use(serveStatic('/home/s'))
app.use('/', serveIndex('/home/s', {'icons': true, view: 'details'}))
app.listen(8001) |
It depends on your operating system. On Linux I'm using systemd, quick search on Google shows that the equivalent of that on Mac OS is launchctl. |
I have created a separate documentation file regarding issues and their workarounds in Firefox including information about how can you render local file:/// URLs on Linux. Let me know if you find anything missing, but for now I am closing this issue as it contains a lot of obsolete and incorrect statements about certain issues. |
When I disable the extension, the browser can open the local file. However, after the extension is enabled, the file content is no longer displayed, let alone render the markdown document.
How do i set it up on firefox?Is the installation document more detailed?
The text was updated successfully, but these errors were encountered: