mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-06 00:47:15 -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
|
// Render initializes a new TermRenderer and renders a markdown with a specific
|
||||||
// style.
|
// style.
|
||||||
func Render(in string, stylePath string) ([]byte, error) {
|
func Render(in string, stylePath string) (string, error) {
|
||||||
return RenderBytes([]byte(in), stylePath)
|
b, err := RenderBytes([]byte(in), stylePath)
|
||||||
|
return string(b), err
|
||||||
}
|
}
|
||||||
|
|
||||||
// RenderBytes initializes a new TermRenderer and renders a markdown with a
|
// RenderBytes initializes a new TermRenderer and renders a markdown with a
|
||||||
|
|||||||
Reference in New Issue
Block a user