Markdown components handle line breaks in different ways depending on the Styles.Paragraph.AutoWrap property.


  • When AutoWrap is set to true, line breaks are removed (replaced with spaces) to ensure that the text fits the width of the control.
    • With TMDViewer, the text fits the control width and can be scrolled vertically.
    • The behavior of TMDLabel depends on its AutoSize property:
      • asBounds: AutoWrap is ignored, width and height are adjusted;
      • asHeight: the text fits the control width and only the height is adjusted;
      • asNo: the text fits the width of the control, but may be truncated at the height.
  • Line breaks are preserved when AutoWrap is set to false.
    • TMDViewer may be scrollable horizontally and vertically.
    • TMDLabel has the same behaviour as above.


To force a line break insert either:

  • two spaces at the end of the line;
  • end the line with a backslash \;
  • use the <br> tag. Using this tag is mainly useful in table cells which are singleline only by design.