Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.2
-
None
-
-
362e56b520cd5f3efcc7600d558b515a8aec6a79 (qt/qtbase/dev) f2e5039738557023a921a68ecd5fb81bdb4f2efc (qt/qtbase/6.2)
Description
Using a naïve Markdown to HTML converter:
QTextDocument d;
d.setMarkdown(input); // Assume GFM with HTML enabled
std::cout << d.toHtml().toStdString() << std::endl;
The following HTML payload (which is also valid GFM):
<b>x<</b>
gets converted to
<<span style=" font-weight:600;">x</span>
(that's right, the escaped < ends up coming before the bold span). Meanwhile, the following payload:
<b>&</b>
literally strips <b> (or whatever other element it would have been put to), becoming
&
(boilerplate HTML before and after the key portion omitted).
Attachments
Issue Links
- is duplicated by
-
QTBUG-94245 Markdown unexpected render result
- Closed
For Gerrit Dashboard: QTBUG-91222 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
376660,3 | Markdown importer: keep entities in HTML blocks with the HTML | dev | qt/qtbase | Status: MERGED | +2 | 0 |
376964,2 | Markdown importer: keep entities in HTML blocks with the HTML | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |