原 微信公众号Markdown模式编辑器集合
简介
微信公众号一直在更新,我之前用的工具中,代码格式突然乱咯,这里继续整理几个可用的。
目前正常的
https://markdowns.yeshu.cloud/
https://markdown.com.cn/editor/
https://quaily.com/tools/markdown-to-wx/
https://yanxi123.com/md2wechat
https://lark-to-markdown.vercel.app/
我自己二次开发的 工具 1 (推荐)
url 中添加&mpeditor=0 这个参数,就能用回老的编辑器,&mpeditor=1就能用新版编辑器
我二次开发:https://md.dbaup.com/
来源于:https://aclickall.github.io
Md2All,http://md.aclickall.com
原作者颜家大少
参考:https://www.cnblogs.com/garyyan/p/8329343.html
我自己二次开发的 工具 2
https://github.com/flyeric0212/wx-md
方法1
https://hub.docker.com/r/doocs/md
1 | docker run -itd --name md2.dbaup.com -p 8080:80 doocs/md:latest |
容器运行起来之后,打开浏览器,访问 http://localhost:8080 即可。
方法2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # 安装 mkdir /www/wwwroot/md2.dbaup.com cd /www/wwwroot/md2.dbaup.com npm i @doocs/md-cli --prefix /www/wwwroot/md2.dbaup.com/ npm install mockm --prefix /md/ ln -s /www/wwwroot/md2.dbaup.com/node_modules /www/wwwroot/md2.dbaup.com/node_modules/@doocs/md-cli ## 全局安装 npm i @doocs/md-cli -g # 启动 md-cli port=8800 /www/wwwroot/md2.dbaup.com/node_modules/.bin/md-cli port=8800 # 访问 http://127.0.0.1:8800/md/ Current configuration file: /www/wwwroot/md2.dbaup.com/node_modules/@doocs/md-cli/mm.config.js Current dataDir: /root/.mockm/www_wwwroot_md2.dbaup.com_node_modules_@doocs_md-cli_mm.config.js/httpData/ |
https://flyeric0212.github.io/
https://github.com/wechatsync/Wechatsync
https://flyeric.top/archives/weixin-markdown-tool-golive
自定义css
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | /* 一级标题样式 */ h1 { } /* 二级标题样式 */ h2 { font-weight:normal; background: #EC4444; color:#ffffff; padding:10px; border-radius:8px !important; font-size:18px; font-weight:bold; text-align:center !important; display: block; } /* 三级标题样式 */ h3 { display:inline-block; font-weight:normal; background: #00ACC1; color:#ffffff; padding:8px; border-radius:8px !important; font-size:16px; } /* 四级标题样式 */ h4 { display:inline-block; font-weight:normal; background: #FF9933; color:#ffffff; padding:3px 10px 3px; border-radius: 5px !important; margin-left:5px; margin-right:2px !important; } /* 图片样式 */ image { } /* 引用样式 */ blockquote { border-left: 6px solid var(--md-primary-color) ; border-radius:8px !important; } /* 引用段落样式 */ blockquote_p { } /* 段落样式 */ p { border-radius:8px; } /* 分割线样式 */ hr { } /* 行内代码样式 */ codespan { word-wrap: break-word; padding: 2px 4px; border-radius: 4px !important; margin:0 2px; color:#e96900; background:#f8f8f8; font-family: courier new,Consolas, Inconsolata, monospace; } .hljs-code, .hljs-comment, .hljs-formula { color: greenyellow; } /* 粗体样式 */ strong { font-weight: bolder; color: blue; } /* 链接样式 */ link { } /* 微信链接样式 */ wx_link { } /* 有序列表样式 */ ol { } /* 无序列表样式 */ ul { } /* 列表项样式 */ li { } /* 代码块样式 */ code { font-family: courier new, Consolas, Inconsolata, monospace; border-radius: 8px !important; font-size: 9px; line-height: 1.3; color: #FFFFFF; margin-left:10px; padding-bottom:15px; } |