How does Go interpret markdown content?

for example, is there any way for go to convert the article content of markdown grammar into html content?

May.22,2021

https://github.com/russross/b.


github.com/russross/blackfriday

func MarkdownToHtml(con string) string {
    renderer := blackfriday.HtmlRenderer(MarkdownToHtmlCommonHtmlFlags, "", "")
    unsafe := blackfriday.Markdown([]byte(con), renderer, MarkdownToHtmlCommonExtensions)
    html := bluemonday.UGCPolicy().SanitizeBytes(unsafe)

    return string(html)
}

MarkdownToHtmlCommonHtmlFlags and MarkdownToHtmlCommonExtensions are available in the document, so you can choose which one you need.
the above can basically meet your need to transfer to html.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eba0e0-48566.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eba0e0-48566.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?