simov / markdown-viewer

Markdown Viewer / Browser Extension
MIT License
1.01k stars 131 forks source link

Auto-Reload Not Working for Local .md Files in Firefox #229

Closed heltonricardo closed 5 months ago

heltonricardo commented 5 months ago

Description: The auto-reload feature, designed to update when a local .md file changes, is not working as expected.

Steps to Reproduce:

  1. Open Firefox on Microsoft Windows.
  2. Install Markdown Viewer extension.
  3. Open a local .md file using the extension.
  4. Make changes to the .md file and save it in an external editor (e.g., Visual Studio Code with Auto-Save enabled).

Expected Behavior: Auto-reload should update the file without manual intervention.

Actual Behavior: Auto-reload is not functioning, requiring a manual refresh to see updates.

Environment:

Additional Information: Verified Auto-Save is enabled in Visual Studio Code. A screenshot illustrating the issue is attached.

image

Thank you for your attention. Let me know if further information is needed.

Best regards, Helton.

simov commented 5 months ago

Hi, thank you for the detailed bug report.

This is a known limitation of the extension when used in Firefox. You can read about it here: https://github.com/simov/markdown-viewer/blob/main/firefox.md

You will have to setup a small file server on your workstation and access your files on localhost instead. In that document there is an example of running such file server using Node.js, but any other software could work as long as it serves the markdown files with text/plain content type.

heltonricardo commented 5 months ago

Thanks for the quick response and directing me to the documentation. I missed checking the repository documentation and appreciate your guidance. I'll explore the suggested workaround using a local file server.