Firefox Extension

May 26, 2026 · View on GitHub

Markdown Viewer is available for Firefox with full feature support.

Overview

FeatureStatus
Markdown rendering
Word export
All diagram types
LaTeX formulas
29 themes
Smart caching
Offline mode

Version: 5.0.0
Manifest: V3
Minimum Firefox: 140.0


Installation

From Firefox Add-ons

  1. Visit Firefox Add-ons - Markdown Viewer
  2. Click "Add to Firefox"
  3. Confirm the installation

Manual Installation (For Developers)

  1. Clone the repository
  2. Run npm install && npm run build:firefox
  3. Open about:debugging
  4. Click "This Firefox"
  5. Click "Load Temporary Add-on"
  6. Select any file in the firefox/dist folder

Firefox-Specific Features

Background Page

Unlike Chrome's service worker, Firefox uses a background page for better compatibility with WebAssembly-based renderers.

WebRequest Handling

Firefox version includes webRequest and webRequestBlocking permissions for more reliable file type detection.


Permissions Explained

PermissionPurpose
storageSave settings and cache
unlimitedStorageStore diagram cache
downloadsSave Word exports
tabsDetect markdown files
activeTabProcess current tab
scriptingInject rendering scripts
webRequestDetect file types
file:///*Access local files
https://*/*, http://*/*Access online files

Supported File Types

Firefox follows the same shared format registry as the Chrome and Edge builds:

ExtensionsType
.md, .markdown, .slides.mdMarkdown / Slidev documents
.plantuml, .pumlPlantUML diagrams
.mermaid, .mmdMermaid diagrams
.vega, .vl, .vega-liteVega / Vega-Lite charts
.gv, .dotGraphviz DOT graphs
.infographicInfographic charts
.canvasCanvas diagrams
.drawiodraw.io diagrams

File Access Setup

To open local Markdown files:

  1. Go to about:addons
  2. Find Markdown Viewer
  3. Click the extension name
  4. Under Permissions, enable file access

Known Differences from Chrome

FeatureChromeFirefox
BackgroundService WorkerBackground Page
Offscreen APIUsedNot available (alternative used)
PerformanceSlightly fasterComparable

Both versions provide the same user-facing features.


Keyboard Shortcuts

ActionShortcut
Export to WordCtrl + S / Cmd + S
Toggle TOCCtrl + B / Cmd + B
Zoom inCtrl + + / Cmd + +
Zoom outCtrl + - / Cmd + -
Reset zoomCtrl + 0 / Cmd + 0

Troubleshooting

Extension Not Loading?

  1. Check Firefox version (requires 140.0+)
  2. Verify extension is enabled in about:addons
  3. Try disabling and re-enabling
  4. Restart Firefox

Local Files Not Opening?

  1. Go to about:addons
  2. Find Markdown Viewer → Permissions
  3. Ensure file access is enabled

Diagrams Not Rendering?

  1. Check browser console for errors
  2. Verify diagram syntax is correct
  3. Try clearing cache and reloading

Development

Build for Firefox

npm install
npm run build:firefox

Test in Firefox

# Load in about:debugging
# Or use web-ext:
web-ext run --source-dir firefox/dist

Firefox-Specific Code

Firefox-specific implementations are in the firefox/ directory:

  • manifest.json — Firefox-specific manifest
  • src/host/ — Background page implementation
  • src/webview/ — Firefox-optimized rendering

Privacy & Security

  • ✅ All processing local
  • ✅ No external requests
  • ✅ No tracking
  • ✅ Open source

Same privacy guarantees as the Chrome version.


Source Code

GitHub: markdown-viewer-extension

Firefox-specific code is in the firefox/ directory.