diff --git a/pkg/markdown/markdown.go b/pkg/markdown/markdown.go index 0da86e802..9da1a2586 100644 --- a/pkg/markdown/markdown.go +++ b/pkg/markdown/markdown.go @@ -43,6 +43,7 @@ func render(text string, opts RenderOpts) (string, error) { func Render(text, style string) (string, error) { opts := RenderOpts{ glamour.WithStylePath(style), + glamour.WithEmoji(), } return render(text, opts) @@ -51,6 +52,7 @@ func Render(text, style string) (string, error) { func RenderWithOpts(text, style string, opts RenderOpts) (string, error) { defaultOpts := RenderOpts{ glamour.WithStylePath(style), + glamour.WithEmoji(), } opts = append(defaultOpts, opts...) @@ -60,6 +62,7 @@ func RenderWithOpts(text, style string, opts RenderOpts) (string, error) { func RenderWithBaseURL(text, style, baseURL string) (string, error) { opts := RenderOpts{ glamour.WithStylePath(style), + glamour.WithEmoji(), glamour.WithBaseURL(baseURL), } @@ -69,6 +72,7 @@ func RenderWithBaseURL(text, style, baseURL string) (string, error) { func RenderWithWrap(text, style string, wrap int) (string, error) { opts := RenderOpts{ glamour.WithStylePath(style), + glamour.WithEmoji(), glamour.WithWordWrap(wrap), }