The pink style doesn't preserve indentation.
piero-vic opened this issue · 2 comments
piero-vic commented
This was also mentioned in charmbracelet/gum#347.
How to reproduce
I have this code.
package main
import (
"fmt"
"github.com/charmbracelet/glamour"
)
func main() {
in := `# Lorem ipsum
- item 1
- item 2
- item 3
- item 4
- item 5
- item 6
Curabitur blandit **tempus** ardua ridiculus sed magna. Phasellus laoreet lorem vel dolor tempus vehicula.
- [ ] task 1
- [ ] subtask 1
- [ ] subtask 2
- [ ] task 2
`
pink, _ := glamour.Render(in, "pink")
fmt.Print(pink)
dark, _ := glamour.Render(in, "dark")
fmt.Print(dark)
}
When running it the output looks like this.
maaslalani commented
Ah good catch! I will fix this. Thank you!
maaslalani commented
This is fixed now, thank you so much for reporting!