mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-08-30 21:56:44 -04:00
Render expects a string, so it also returns a string
This commit is contained in:
@@ -26,8 +26,9 @@ type TermRenderer struct {
|
||||
|
||||
// Render initializes a new TermRenderer and renders a markdown with a specific
|
||||
// style.
|
||||
func Render(in string, stylePath string) ([]byte, error) {
|
||||
return RenderBytes([]byte(in), stylePath)
|
||||
func Render(in string, stylePath string) (string, error) {
|
||||
b, err := RenderBytes([]byte(in), stylePath)
|
||||
return string(b), err
|
||||
}
|
||||
|
||||
// RenderBytes initializes a new TermRenderer and renders a markdown with a
|
||||
|
||||
Reference in New Issue
Block a user