Created
August 17, 2022 10:42
-
-
Save Debdut/925520e54d6ddbc6cca6457651fe9bf0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/charmbracelet/glamour" | |
) | |
func main() { | |
in := `# Hello World | |
This is a simple example of Markdown rendering with Glamour! | |
Check out the [other examples](https://github.com/charmbracelet/glamour/tree/master/examples) too. | |
Bye! | |
` | |
out, _ := glamour.Render(in, "dark") | |
fmt.Print(out) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment