goreadme icon indicating copy to clipboard operation
goreadme copied to clipboard

internal/markdown/comment.go: consider exposing whole package or ToMarkdown

Open mbana opened this issue 5 years ago • 2 comments

Would be useful to be able to import and use ToMarkdown as defined in here https://github.com/posener/goreadme/blob/master/internal/markdown/comment.go#L284.

Might be helpful to just the internal package altogether. Not sure...

mbana avatar Mar 09 '19 20:03 mbana

Hi, Sorry for the long delay.

Totally agree. Actually, if you look at the first line in this file, I copied and modified this code from the go source code file: https://github.com/golang/go/blob/master/src/go/doc/comment.go

The original code has ToText and ToHTML converters. I needed a markdown converter.

WDYT?

posener avatar Mar 23 '19 15:03 posener

Hi, plan to use it to resolve this issue https://github.com/saibing/bingo/issues/69.

mbana avatar Mar 26 '19 14:03 mbana