posener/goreadme

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

mbana opened this issue · 2 comments

mbana commented

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...

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?

mbana commented

Hi, plan to use it to resolve this issue saibing/bingo#69.