A local-first Chrome/Edge Manifest V3 extension for reading Markdown folders with a document outline, file switching, and selectable reading styles.
一个本地优先的 Chrome/Edge Manifest V3 扩展,用于阅读本地 Markdown 文件夹,支持文档大纲、文件切换和可更换阅读样式。
-
Open a local folder and browse Markdown files after explicit folder authorization.
-
Render GitHub-flavored Markdown with headings, tables, task lists, code blocks, math-ready syntax, and diagrams-ready syntax.
-
Show a document outline generated from Markdown headings.
-
Switch between sibling Markdown files in the authorized folder.
-
Restore the last opened Markdown document when browser folder permission is still available.
-
Choose reader theme, content width, raw Markdown mode, and reading style templates.
-
在用户明确授权文件夹后,读取并浏览其中的 Markdown 文件。
-
渲染 GitHub Flavored Markdown,支持标题、表格、任务列表、代码块,以及面向公式和图表的语法基础。
-
根据 Markdown 标题生成文档大纲。
-
在已授权文件夹内切换其他 Markdown 文件。
-
如果浏览器仍保留文件夹权限,自动恢复上次打开的 Markdown 文档。
-
可切换阅读主题、正文宽度、Raw Markdown 模式和阅读样式模板。
The reader includes style templates that can be changed from the extension popup or settings page:
阅读器内置可更换的样式模板,可以在扩展弹窗或设置页中切换:
-
Clean Doc: default document style for PRDs, technical docs, and structured notes. -
GitHub: GitHub-like Markdown presentation. -
Paper: roomier long-form reading style. -
Classic: closer to the original simple rendering style. -
Clean Doc:默认文档风格,适合 PRD、技术文档和结构化笔记。 -
GitHub:接近 GitHub Markdown 的展示方式。 -
Paper:留白更充足的长文阅读风格。 -
Classic:更接近原始的简单渲染样式。
Install dependencies:
安装依赖:
npm installRun checks:
运行检查:
npm run typecheck
npm test -- --run
npm run build
npm run verify:dist-
Run
npm run build. -
Open the Chrome or Edge extensions page.
-
Enable developer mode.
-
Choose "Load unpacked".
-
Select the generated
dist/folder. -
执行
npm run build。 -
打开 Chrome 或 Edge 的扩展管理页面。
-
开启开发者模式。
-
选择“加载已解压的扩展”。
-
选择生成出来的
dist/文件夹。
-
Click the extension action.
-
Click "Open Reader".
-
In the reader, click "Files", then click "Open Folder" in the drawer.
-
Choose
fixtures/sample-docs. -
Confirm the file drawer can switch between
README.md,docs/guide.md, anddocs/api.md. -
Confirm the outline panel lists headings for the current document.
-
In
README.md, click the relative links to Guide and API. -
Reload the reader and confirm it restores the last opened document, or offers "Restore last document" if permission must be renewed.
-
Switch
StylebetweenClean Doc,GitHub,Paper, andClassicfrom the extension popup or settings page. -
Confirm the sample table, task list, code block, Mermaid block, and MathJax formula are visible in rendered Markdown.
-
点击扩展图标。
-
点击 “Open Reader”。
-
在 reader 页面点击“文件”,再在文件抽屉中点击“打开文件夹”。
-
选择
fixtures/sample-docs。 -
确认左侧文件抽屉可以在
README.md、docs/guide.md和docs/api.md之间切换。 -
确认右侧大纲会展示当前文档的标题结构。
-
在
README.md中点击指向 Guide 和 API 的相对链接。 -
重新加载 reader,确认它会恢复上次打开的文档;如果需要重新授权,则会显示“恢复上次文档”。
-
在扩展弹窗或设置页的
样式中切换Clean Doc、GitHub、Paper和Classic。 -
确认示例表格、任务列表、代码块、Mermaid 代码块和 MathJax 公式都能在渲染后的 Markdown 中看到。
Folder navigation uses the File System Access API. The file:// content script only provides a compatibility entry and cannot enumerate sibling files without explicit folder authorization.
文件夹导航依赖 File System Access API。file:// content script 只提供兼容入口;如果没有用户明确授权文件夹,它不能枚举同级文件。