File indexing completed on 2025-01-19 04:46:50
0001 /* 0002 SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "markdownqtextdocument.h" 0008 0009 #include <QTextDocument> 0010 0011 MarkdownQTextDocument::MarkdownQTextDocument() 0012 { 0013 } 0014 0015 MarkdownQTextDocument::~MarkdownQTextDocument() 0016 { 0017 } 0018 0019 QString MarkdownQTextDocument::toHtml() const 0020 { 0021 QTextDocument textDocument; 0022 textDocument.setMarkdown(mText, QTextDocument::MarkdownNoHTML); 0023 const QString result = textDocument.toHtml(); 0024 return result; 0025 }