{"id":13570022,"url":"https://github.com/kscript/markdown-download","last_synced_at":"2025-07-19T14:33:43.512Z","repository":{"id":37699904,"uuid":"434158288","full_name":"kscript/markdown-download","owner":"kscript","description":"谷歌浏览器插件: 将掘金、知乎、思否、简书、博客园、微信公众号、开源中国、CSDN的文章转为markdown文档并下载","archived":false,"fork":false,"pushed_at":"2024-09-19T05:14:48.000Z","size":1429,"stargazers_count":99,"open_issues_count":0,"forks_count":26,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T06:09:42.455Z","etag":null,"topics":["chrome","cnblogs","csdn","download","extension","hexo","html-to-md","html2markdown","jianshu","juejin","markdown","oschina","segmentfault","wechat","zhihu"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kscript.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-02T09:29:58.000Z","updated_at":"2025-03-13T05:10:03.000Z","dependencies_parsed_at":"2022-09-06T11:51:54.534Z","dependency_job_id":"a1a671d4-6810-483b-b4ee-6b58dee30fb9","html_url":"https://github.com/kscript/markdown-download","commit_stats":{"total_commits":30,"total_committers":2,"mean_commits":15.0,"dds":"0.033333333333333326","last_synced_commit":"cc57ef33aa4452591abf645c059453c9968622f6"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kscript%2Fmarkdown-download","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kscript%2Fmarkdown-download/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kscript%2Fmarkdown-download/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kscript%2Fmarkdown-download/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kscript","download_url":"https://codeload.github.com/kscript/markdown-download/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244913331,"owners_count":20530817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chrome","cnblogs","csdn","download","extension","hexo","html-to-md","html2markdown","jianshu","juejin","markdown","oschina","segmentfault","wechat","zhihu"],"created_at":"2024-08-01T14:00:47.303Z","updated_at":"2025-03-22T06:09:41.367Z","avatar_url":"https://github.com/kscript.png","language":"JavaScript","readme":"# markdown-download\nmarkdown文档下载 chrome插件\n\n## 作为插件使用\n1. 在命令行中执行拉取/安装/打包\n``` cmd\ngit clone https://github.com/kscript/markdown-download\ncd markdown-download\nnpm install\nnpm run build\n```\n\u003e 也可以在clone后使用`gh-pages`分支中的文件\n2. 在chrome浏览器扩展程序中`开启开发者模式`\n3. 选择`加载已解压的扩展程序`, 选中项目打包后的dist文件夹\n4. 访问已支持的网站的文章详情页面, 等待文章内图片全部加载后, 点击插件图标\n\n## 作为模块使用\n### 安装\n```\nnpm i markdown-downloader\n```\n### 使用\n\u003e 由于会操作dom元素, 所以运行时需要在浏览器环境下\n``` js\n// 方式1. 导入模块\nimport markdownDownload, { convert, download, websiteConfigs } from 'markdown-downloader'\nmarkdownDownload(websiteConfigs.juejin, {\n\t// 包含所有信息的innerHTML文本\n\tcontext: ``\n})\n```\n```html\n\u003c!-- 方式2. 直接使用脚本文件 --\u003e\n\u003cscript src=\"./markdownDownload.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n\t// 给window对象添加一个markdownDownload函数, convert, download, websiteConfigs作为其属性\n\tmarkdownDownload(markdownDownload.websiteConfigs.juejin, {\n\t\t// 包含所有信息的innerHTML文本\n\t\tcontext: ``\n\t})\n\u003c/script\u003e\n```\n\n## 已支持的网站\n[Github Issue](https://github.com/)  \n[掘金](https://juejin.cn/)  \n[知乎专栏](https://zhuanlan.zhihu.com/)  \n[思否专栏](https://segmentfault.com/)  \n[简书](https://www.jianshu.com/)  \n[博客园](https://www.cnblogs.com/)  \n[微信文章](https://mp.weixin.qq.com/)  \n[开源中国](https://www.oschina.net/)  \n[CSDN](https://blog.csdn.net/)  ","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkscript%2Fmarkdown-download","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkscript%2Fmarkdown-download","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkscript%2Fmarkdown-download/lists"}