fix: expand path before rendering style

This commit is contained in:
Gennaro Tedesco 2025-06-08 11:53:29 +02:00
commit 880e0c2a39

View file

@ -75,7 +75,7 @@ func GlamourStyle(style string, isCode bool) glamour.TermRendererOption {
if style == styles.AutoStyle {
return glamour.WithAutoStyle()
}
return glamour.WithStylePath(style)
return glamour.WithStylePath(ExpandPath(style))
}
// If we are rendering a pure code block, we need to modify the style to