mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-08 07:10:32 +00:00
This allows support for markdown table display and <foo>
Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
parent
6f52f602ef
commit
f6f265f968
@ -1157,7 +1157,9 @@ void replaceAndInsertMarkdown(int startIndex, int endIndex, QTextDocument *doc)
|
||||
QTextDocumentFragment fragment(cursor);
|
||||
const QString plainText = fragment.toPlainText();
|
||||
cursor.removeSelectedText();
|
||||
cursor.insertMarkdown(plainText, QTextDocument::MarkdownNoHTML);
|
||||
QTextDocument::MarkdownFeatures features = static_cast<QTextDocument::MarkdownFeatures>(
|
||||
QTextDocument::MarkdownNoHTML | QTextDocument::MarkdownDialectGitHub);
|
||||
cursor.insertMarkdown(plainText, features);
|
||||
cursor.block().setUserState(Markdown);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user