Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-97041

QML Text with markdown backticks for code formatting does not respect font size

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.6, 6.8.0 Beta4
    • Quick: Other
    • None
    • Windows 10 desktop
    • Windows

    Description

      A QML Text component configured to use Text.MarkdownText displays text that is tagged using the backtick character at a constant size and does not respect the font size of the Text component.

      Consider the following code:

      Column {
          Text {
              font.pointSize: 6
              textFormat: Text.MarkdownText
              text: "6 pt - *italics*, `code`, **bold**"
          }
          Text {
              font.pointSize: 36
              textFormat: Text.MarkdownText
              text: "36 pt - *italics*, `code`, **bold**"
          }
      }
      

       

      The "code" text does not change size while other decorated text does.

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              srutledg Shawn Rutledge
              stan.m Stanley Morris
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes