Glamour
Stylesheet-based markdown rendering for your CLI apps
Stylesheet-based markdown rendering for your CLI apps. glamour lets you render markdown documents & templates on ANSI-compatible terminals. You can create your own stylesheet or simply use one of the stylish defaults. You can find all available default styles in our gallery. Want to create your own style? Learn how! There are a few options for using a custom style. Call glamour.Render(inputText, "desiredStyle") Set the GLAMOUR_STYLE environment variable to your desired default style or a file location for a style and call glamour.RenderWithEnvironmentConfig(inputText). Set the GLAMOUR_STYLE environment variable and pass glamour.WithEnvironmentConfig() to your custom renderer.