Repository navigation
Releases
Releases · ebal/MarkdownLens
v0.2.7
Changed
- Rendered Markdown, highlighted code and diagrams are inserted into the page as sanitized DOM nodes instead of through
innerHTML, which also clears the Mozilla add-on linter's warnings for Markdown Lens's own code. Highlighted code is now sanitized too. - Rewritten addons.mozilla.org description, and reviewer notes that explain the linter warnings in the bundled libraries.
Fixed
- Mozilla's add-on linter warning about Firefox for Android: the manifest now requires Firefox for Android 142, the first version that supports the data collection declaration.
v0.2.6
Added
- The tab of a rendered Markdown file shows the Markdown Lens icon, so you can see at a glance that the extension rendered it.
- README: link to the Markdown Lens listing on addons.mozilla.org.
- A longer addons.mozilla.org description that explains how to use the extension.
Changed
- New Markdown Lens logo, used for the extension icons (now also in 32 px) and in the README. The logo file itself is not packaged; the extension only ships the icon sizes.
v0.2.5
Added
- Releases are submitted to addons.mozilla.org (listed), where Mozilla reviews and signs them, so Firefox users can install and update Markdown Lens from there.
- Declare in the manifest that the extension collects no data (
data_collection_permissions), as addons.mozilla.org requires for new add-ons. - MIT
LICENSEfile.
Changed
- Firefox and LibreWolf 140 or newer are required (was 128), the first versions that understand the data collection declaration.
v0.2.4
Added
- README: a Privacy section on what the extension can access and what remote content (images, media, CSS
url()) a document can load.
Changed
- The theme and table-of-contents settings are kept in the extension's own storage instead of each website's
localStorage, so they now apply on every site. Settings saved by older versions are moved over once and removed from the site. This adds thestoragepermission, which browsers grant without asking.
v0.2.3
Added
- Demo video of Markdown Lens in action at the top of the README.
- README: a Download section for the release
.zip(Chromium) and.xpi(Firefox, LibreWolf) packages. - README: install steps for Firefox and LibreWolf, including the site access permission and opening local
file://Markdown files. - The GitHub release workflow can be run by hand for an existing tag; running it again replaces the attached packages.
Changed
- README uses this repository's
tests/manual-test.mdas the example file. - The manual test page also checks that flowchart links and form controls are neutralized.
Fixed
- A malformed
%escape in the file name or#anchorno longer stops the rendering halfway.
Removed
- Tags and release pages for 0.1.0, 0.2.0 and 0.2.1; 0.2.2 is the earliest release you can download.
Security
- Fix script injection through flowchart.js diagrams: a node written as
text:>javascript:…became a link that ran code in the page when clicked. All diagram output (flowchart.js, sequence diagrams, mermaid) is now sanitized with DOMPurify, which also removes flowchart.jstext:$functionclick handlers. - Update DOMPurify from 3.2.6 to 3.5.0, which fixes published sanitizer bypasses (GHSA-v8jm-5vwx-cfxm, GHSA-v2wj-7wpq-c8vv, GHSA-h8r8-wccr-v5f2).
- Remove form controls (
<form>,<button>,<select>,<textarea>, and every<input>except task-list checkboxes) from rendered Markdown, so a document cannot show a working fake login form. - Accept mermaid results only from the extension's own renderer frame (checks the message origin as well as its source).
v0.2.2
Added
- Manual test page
tests/manual-test.mdthat exercises every feature.
Fixed
- Mermaid diagrams failing in Firefox and LibreWolf with "Syntax error in text" or "call to Function() blocked by CSP"; mermaid now renders in a hidden extension page.
- Leftover mermaid error graphics at the bottom of the page after a diagram with a syntax error.