Pourquoi le Markdown n'interprète pas gras et italique à la fois ?
Bonjour,
j'essaye d'implémenter un éditeur markdown en QML mais je ne parviens pas à faire afficher par mon éditeur la combinaison italique + gras que se soit en utilisant les astérisques ou les underscores.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
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
}
} |
Mon éditeur affiche :
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.
alors que je devrais avoir :
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.
Quand j'essaye sur Github j'obtiens bien l'affichage voulu et comme il est indiqué dans la doc de Qt que son markdown support celui de Github https://doc.qt.io/qt-5/qml-qtquick-t...extFormat-prop je devrais pouvoir y parvenir.
Pouvez-vous m'indiquez si c'est possible?
Merci d'avance.