charmbracelet/glamour

bug: wrapped lines go outside margins

freddiehaddad opened this issue · 0 comments

If you have a long block of text without any spaces (i.e. a really long url), the rendered markdown places the text at the left most edge of the terminal window ignoring the margin.

  Margin
  v
  | <-- left margin
  | bash <(curl -s 
https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/install.sh)
^ This line doesn't stay inside the code block.  It goes outside the margin.
  | more stuff
  | and more stuff

Expected behavior

  Margin
  v 
  | <-- left margin
  | bash <(curl -s 
  | https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/
  | installer/install.sh)
  | more stuff
  | and more stuff