Lists formatting
cpkio opened this issue · comments
cpkio commented
bashbunni commented
@muesli please let me know if there's a better way here, but I know you can adjust the style config for the list items as follows:
config := glamour.DarkStyleConfig
config.Item = ansi.StylePrimitive{
BlockPrefix: " • ",
}
renderer, err := glamour.NewTermRenderer(
glamour.WithStyles(config),
glamour.WithWordWrap(width),
)
Then again, that takes away the option for auto-detecting the terminal theme your user might prefer (light vs dark)