enkisoftware/imgui_markdown

No or wrong text wrapping for links and headings.

rcane opened this issue · 2 comments

rcane commented

There are two problems with the current code concerning text wrapping:

  • Headings are wrapped at the wrong position because TextRegion always uses the normal text font to compute the wrap position but the font of a heading is usually larger than that.
  • Links are not wrapped at all. Shouldn't the code use the RenderLine() function like the other text elements do?

Thanks for your feedback, I've fixed the header wrapping.
Links not wrapping is more difficult to implement, a fix may be done later.

Thanks again, we were able to get the link wrap to work.