charmbracelet/glamour

Link Styles Not Working

Debdut opened this issue · 1 comments

Description

The links are not colored or styled properly.

How To Replicate

The showcase program at the beginning of README doesn't render the links correctly as show in the below it.

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)
}

Output

Screen Shot 2021-11-06 at 12 21 26 AM

Expected Output

I'm not sure this is actually a bug, as the indentation in markdowns has a meaning, it identifies code blocks: https://spec.commonmark.org/0.30/#indented-code-blocks