Markdown Viewer is a lightweight browser extension that allows you to view Markdown files directly in your browser. The extension supports both light and dark themes, which can be toggled on and off, and ensures that all Markdown elements are rendered correctly.
- View Markdown Files: Automatically renders
.md
files in your browser. - Theme Toggle: Switch between light and dark modes.
- Responsive Design: Ensures images and other media scale correctly within the viewport.
- Support for Links and Media: Handles web links, email links, images, videos, and other embedded media.
-
Download the Extension:
- Download the latest release from the Releases page.
-
Install in Firefox:
- Go to
about:debugging
> "This Firefox" > "Load Temporary Add-on" and select the.xpi
file.
- Go to
-
Install in Chrome/Edge:
- Go to
chrome://extensions/
(oredge://extensions/
), enable Developer mode, and load the unpacked extension or upload the.zip
file directly.
- Go to
- Open a
.md
file in your browser. - The Markdown content will be automatically rendered.
- Use the theme toggle switch at the top of the page to switch between light and dark modes.
To build the extension:
- Install the necessary tools:
- Install
web-ext
globally:npm install --global web-ext
.
- Install
- Navigate to the project directory and run:
web-ext build
to package the extension.
The build artifacts will be placed in the web-ext-artifacts
directory.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
- marked.js for Markdown parsing.