path: root/src/gui/text/qtextmarkdownimporter_p.h
diff options
authorShawn Rutledge <>2019-05-20 12:58:36 +0200
committerShawn Rutledge <>2019-06-01 21:13:58 +0200
commit237fa21feef63884043bd6cf32682b2b08c78454 (patch)
treedabbd1a0ece334bfb37bce76042621d7ae94b907 /src/gui/text/qtextmarkdownimporter_p.h
parentca0c9f82cbf7c8c37acdcbdfdc3fa0c5fc138059 (diff)
Markdown and HTML: support image alt text and title
It's a required CommonMark feature: and alt text is also required in HTML: Now we are able to read these attributes from either html or markdown and rewrite either an html or markdown document that preserves them. This patch does not add viewing or editing support in QTextEdit etc. Change-Id: I51307389f8f9fc00809808390e583a83111a7b33 Reviewed-by: Gatis Paeglis <>
Diffstat (limited to 'src/gui/text/qtextmarkdownimporter_p.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/text/qtextmarkdownimporter_p.h b/src/gui/text/qtextmarkdownimporter_p.h
index f905aa0f87..fdce74483b 100644
--- a/src/gui/text/qtextmarkdownimporter_p.h
+++ b/src/gui/text/qtextmarkdownimporter_p.h
@@ -125,6 +125,7 @@ private:
int m_paragraphMargin = 0;
int m_blockType = 0;
Features m_features;
+ QTextImageFormat m_imageFormat;
QTextListFormat m_listFormat;
QTextBlockFormat::MarkerType m_markerType = QTextBlockFormat::NoMarker;
bool m_needsInsertBlock = false;