Fix img tag allowing img....
Co-authored-by: TheKodeToad <TheKodeToad@proton.me> Signed-off-by: SabrePenguin <147069705+SabrePenguin@users.noreply.github.com>
This commit is contained in:
parent
096028f1a6
commit
0c84d58915
@ -31,7 +31,7 @@ QString markdownToHTML(const QString& markdown)
|
||||
int imgPos;
|
||||
while (pos != -1) {
|
||||
pos = pos + 5; // 5 is the size of the </ul> tag
|
||||
imgPos = htmlStr.indexOf("<img", pos);
|
||||
imgPos = htmlStr.indexOf("<img ", pos);
|
||||
if (imgPos == -1)
|
||||
break; // no image after the tag
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user