Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Why TextEdit.MarkdownText can't display bold and italic in the same time?
Forum Updated to NodeBB v4.3 + New Features

Why TextEdit.MarkdownText can't display bold and italic in the same time?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 187 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JulienB
    wrote on last edited by
    #1

    Hi everyone,

    ScrollView {
     anchors.fill: parent
      TextArea {
        id: textEdit
        textFormat: TextEdit.MarkdownText
        focus: true
        text: "Emphasis, aka italics, with *asterisks* or _underscores_.
    Strong emphasis, aka bold, with **asterisks** or __underscores__.
    Combined emphasis with **asterisks and *asterisks***.
    Combined emphasis with **asterisks and _underscores_**."
        selectByMouse: true
        persistentSelection: true
         }
     }
    

    My editor displays :

    Emphasis, aka italics, with asterisks or underscores.
    Strong emphasis, aka bold, with asterisks or underscores.
    Combined emphasis with asterisks and asterisks.
    Combined emphasis with asterisks and underscores.

    But I want :

    Emphasis, aka italics, with asterisks or underscores.
    Strong emphasis, aka bold, with asterisks or underscores.
    Combined emphasis with asterisks and asterisks.
    Combined emphasis with asterisks and underscores.

    When I try on Github I get the right format and the Qt documentation indicates that the markdown uses the Github syntax https://doc.qt.io/qt-5/qml-qtquick-textedit.html#textFormat-prop

    Thanks for your help.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JulienB
      wrote on last edited by
      #2

      I have updated Qt to the last version and it is ok now...

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved