mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 15:10:28 +00:00
parent
92da8c7044
commit
4913766d58
@ -183,7 +183,7 @@ func ClipMessage(text string, length int) string {
|
|||||||
|
|
||||||
// ParseMarkdown takes in an input string as markdown and parses it to html
|
// ParseMarkdown takes in an input string as markdown and parses it to html
|
||||||
func ParseMarkdown(input string) string {
|
func ParseMarkdown(input string) string {
|
||||||
extensions := parser.HardLineBreak | parser.NoIntraEmphasis
|
extensions := parser.HardLineBreak | parser.NoIntraEmphasis | parser.FencedCode
|
||||||
markdownParser := parser.NewWithExtensions(extensions)
|
markdownParser := parser.NewWithExtensions(extensions)
|
||||||
renderer := html.NewRenderer(html.RendererOptions{
|
renderer := html.NewRenderer(html.RendererOptions{
|
||||||
Flags: 0,
|
Flags: 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user