From f5c7799f59ba53c634906b11e2135190093bf87b Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Tue, 3 Nov 2020 20:51:57 +0100 Subject: Support the markdown underline extension MarkdownDialectGitHub now includes this feature, so *emph* is italicized and _emph_ is underlined. This is a better fit for QTextDocument capabilities; until now, _underlined_ markdown could be read, but would be rendered with italics, because in CommonMark, *emphasis* and _emphasis_ are the same. But QTextMarkdownWriter already writes underlining and italics distinctly in this way. [ChangeLog][QtGui][Text] By default (with MarkdownDialectGitHub), markdown _underline_ and *italic* text styles are now distinct. Fixes: QTBUG-84429 Change-Id: Ifc6defa4852abe831949baa4ce28bae5f1a82265 Reviewed-by: Volker Hilsheimer --- examples/widgets/richtext/textedit/example.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'examples/widgets') diff --git a/examples/widgets/richtext/textedit/example.md b/examples/widgets/richtext/textedit/example.md index a16a9197b4..158728a784 100644 --- a/examples/widgets/richtext/textedit/example.md +++ b/examples/widgets/richtext/textedit/example.md @@ -11,10 +11,12 @@ comments in each of the following sections to encourage you to experiment. ## Font and Paragraph Styles -QTextEdit supports **bold**, *italic*, & ~~strikethrough~~ font styles, and -can display multicolored text. Font families such as Times New Roman and `Courier` +QTextEdit supports **bold**, *italic*, _underline_ & ~~strikethrough~~ font +styles, and can display + multicolored +text. Font families such as +Times New Roman and +Courier can also be used directly. *If you place the cursor in a region of styled text, the controls in the tool bars will change to reflect the current style.* -- cgit v1.2.3