在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:lunny/html2md开源软件地址:https://github.com/lunny/html2md开源编程语言:Go 100.0%开源软件介绍:Html2md is a Go library for converting html to markdown. InstallationIf you have gopm installed,
Or
Usage
md := html2md.Convert(html)
html2md.AddRule(&html2md.Rule{
patterns: []string{"hr"},
tp: Void,
replacement: func(innerHTML string, attrs []string) string {
return "\n\n* * *\n"
},
}) or html2md.AddConvert(func(content string) string {
return strings.ToLower(content)
}) DocsLICENSEBSD License http://creativecommons.org/licenses/BSD/ |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论