mirror of
https://github.com/fengxxc/wechatmp2markdown.git
synced 2026-02-23 23:30:55 +08:00
fix: windows下标题包含英文冒号出错的bug(使用∶替代)
This commit is contained in:
2
Makefile
2
Makefile
@@ -1,6 +1,6 @@
|
||||
BUILD_ENV := CGO_ENABLED=0
|
||||
APP=wechatmp2markdown
|
||||
VERSION=v1.1.7
|
||||
VERSION=v1.1.8
|
||||
|
||||
# linux or mac 环境编译
|
||||
# make [cmd]
|
||||
|
||||
@@ -74,7 +74,7 @@ markdown和图片文件将保存在 `D:\wechatmp_bak\gitcode操你妈\` 下
|
||||
> ```
|
||||
> "<" -> "≺"
|
||||
> ">" -> "≻"
|
||||
> ":" -> ":"
|
||||
> ":" -> "∶"
|
||||
> """ -> "“"
|
||||
> "/" -> "∕"
|
||||
> "\" -> "∖"
|
||||
@@ -83,7 +83,7 @@ markdown和图片文件将保存在 `D:\wechatmp_bak\gitcode操你妈\` 下
|
||||
> "*" -> "⁎"
|
||||
> ```
|
||||
|
||||
> 在linux环境下,使用CLI模式,需要为程序赋予可执行与写权限,例如:` chmod +xw wechatmp2markdown-v1.1.7_linux_amd64`
|
||||
> 在linux环境下,使用CLI模式,需要为程序赋予可执行与写权限,例如:` chmod +xw wechatmp2markdown-v1.1.8_linux_amd64`
|
||||
|
||||
### web server 模式
|
||||
通过web服务使用
|
||||
@@ -105,7 +105,7 @@ markdown和图片文件将保存在 `D:\wechatmp_bak\gitcode操你妈\` 下
|
||||
浏览器访问:`localhost:8964?url=https://mp.weixin.qq.com/s/a=1&b=2&image=save`,
|
||||
将返回一个zip文件
|
||||
|
||||
> 在linux环境下,使用web server模式,需要为程序赋予可执行权限,例如:` chmod +x wechatmp2markdown-v1.1.7_linux_amd64`
|
||||
> 在linux环境下,使用web server模式,需要为程序赋予可执行权限,例如:` chmod +x wechatmp2markdown-v1.1.8_linux_amd64`
|
||||
|
||||
## 开发
|
||||
go 1.20
|
||||
|
||||
@@ -39,7 +39,7 @@ func legalizationFilenameForWindows(name string) string {
|
||||
if invalidChars.MatchString(name) {
|
||||
name = strings.ReplaceAll(name, "<", "≺")
|
||||
name = strings.ReplaceAll(name, ">", "≻")
|
||||
name = strings.ReplaceAll(name, ":", ":")
|
||||
name = strings.ReplaceAll(name, ":", "∶")
|
||||
name = strings.ReplaceAll(name, "\"", "“")
|
||||
name = strings.ReplaceAll(name, "/", "∕")
|
||||
name = strings.ReplaceAll(name, "\\", "∖")
|
||||
|
||||
Reference in New Issue
Block a user