html2md
html2md copied to clipboard
A Go library for converting html to markdown, moved to https://gitea.com/lunny/html2md
Addresses #12
AddRule has keys, which allows default rules to be overridden. Would be nice if AddConvert had the same ability to override.
With `vgo`, semver releases would be nice to have (maybe 1.0.0?). I'm currently using this project through `dep`, and version pinning with commit SHAs is okay-ish, but it's generally discouraged.
语法问题
想学习一下html2md的实现,看了一下代码,好像有些正则是没用的.在go里面,没有g这个flag.而且在go里面 类似`/something/i`的语法是无效的,你似乎要写成'(i)something'才可以. 我是从这里看到的. https://github.com/StefanSchroeder/Golang-Regex-Tutorial/blob/master/01-chapter2.markdown#case-sensitivity 不知道是不是这样,特来提个issue.