{"id":20294554,"url":"https://github.com/codingcn/vue-markdown","last_synced_at":"2026-03-19T15:05:27.988Z","repository":{"id":39577464,"uuid":"104094954","full_name":"codingcn/vue-markdown","owner":"codingcn","description":"A very nice markdown editor implemented by vuejs.","archived":false,"fork":false,"pushed_at":"2022-12-07T14:22:00.000Z","size":2623,"stargazers_count":2,"open_issues_count":21,"forks_count":0,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-09-10T16:06:16.208Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codingcn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-19T15:45:26.000Z","updated_at":"2020-03-20T13:50:53.000Z","dependencies_parsed_at":"2023-01-23T21:31:57.248Z","dependency_job_id":null,"html_url":"https://github.com/codingcn/vue-markdown","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codingcn/vue-markdown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingcn%2Fvue-markdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingcn%2Fvue-markdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingcn%2Fvue-markdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingcn%2Fvue-markdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codingcn","download_url":"https://codeload.github.com/codingcn/vue-markdown/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingcn%2Fvue-markdown/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29487474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-14T15:29:37.950Z","updated_at":"2026-02-15T19:34:03.703Z","avatar_url":"https://github.com/codingcn.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-md\n\n\u003e虽然现在有很多开源Markdown在线编辑器，但都过于臃肿，所以自己又造了一个轮子，easy enough!\n\n## 功能与特性\n* 基于webpack构建，单组件开发，方便再次开发扩展，开箱即用。\n* 简洁不臃肿，只实现了一些基本功能。\n* 支持所有标准markdown语法/代码高亮/表格插入等。\n* 图片支持拖拽、截图粘贴两种上传方式,支持实时预览、（跨域）上传。\n* 支持全屏、分栏、预览等编辑模式。\n* 样式参考：`https://carbon.now.sh/`\n\n_注：关于一些个性化功能，比如 ***工具栏*** 和 ***TOC目录*** 。其实只要熟悉了`markdown`语法之后，是没有人会通过快捷工具栏来写`markdown`内容的，`TOC目录`的话我尝试写了一下，实现也很简单，就是在读取`markdown`编译后的`html`内容的时候，从中选取下`h2 h3 h4...`几个节点而已。同学们如果需要的话，可以自己尝试着去做一下，不懂的地方欢迎交流。_\n\n## 使用方法\n***图片上传（后端）***\n作者提供了PHP的服务器端代码，请自行参考修改，代码位置`/php_server_demo`\n\n***vue模板***\n```\n\u003ctemplate\u003e\n    \u003cdiv\u003e\n        \u003cform action=\"http://localhost/vue-md/php_server_demo/form.php\" method=\"post\"\u003e\n            \u003ceditor v-bind:markdown=\"form.markdown_md\"\n                    v-bind:upload_action_editor=\"upload_action_editor\"\n                    v-on:getEditorContent=\"getEditorContent\"\n            \u003e\n            \u003c/editor\u003e\n            \u003cdiv style=\"margin: 1rem auto; width: 85%;\"\u003e\n                \u003cbutton\u003e提交\u003c/button\u003e\n            \u003c/div\u003e\n        \u003c/form\u003e\n    \u003c/div\u003e\n\u003c/template\u003e\n```\n***js内容***\n```\n\u003cscript\u003e\n    import editor from './Editor'\n\n    export default {\n        name: 'app',\n        components: {\n            editor\n        },\n        data: function () {\n            return {\n                form: {\n                    content_html: '',\n                    markdown_md: '```\\n' +\n                    '\u003c?php\\n' +\n                    '    echo \\'hello world.\\';\\n' +\n                    '?\u003e\\n' +\n                    '```',   // 默认填充的markdown数据\n                },\n                upload_action_editor: 'http://localhost/vue-md/php_server_demo/upload.php'   // 图片上传服务器地址\n            }\n        },\n        methods: {\n            getEditorContent(data) {\n                this.form.content_md = data.content_md\n                this.form.content_html = data.content_html\n            },\n        }\n    }\n\u003c/script\u003e\n```\n\n## Build Setup\n\n``` bash\n# install dependencies\ncnpm install\n\n# serve with hot reload at localhost:8080\nnpm run serve\n\n# build for production with minification\nnpm run build\n\n```\n## 该Markdown编辑器由以下优秀项目驱动\n`axios`\n`github-markdown-css`\n`highlight.js`\n`marked`\n`promise-polyfill`\n`vue`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingcn%2Fvue-markdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodingcn%2Fvue-markdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingcn%2Fvue-markdown/lists"}