mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-10-27 03:29:58 -04:00
Render expects a string, so it also returns a string
This commit is contained in:
1 parent
63c3acd5f9
commit
ea66dfbf35
1 file changed
+3
-2
@@ -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