diff options
-rw-r--r-- | Applications/TextEditor/TextEditorWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/TextEditor/TextEditorWidget.cpp b/Applications/TextEditor/TextEditorWidget.cpp index 5533b39620..7e0322e267 100644 --- a/Applications/TextEditor/TextEditorWidget.cpp +++ b/Applications/TextEditor/TextEditorWidget.cpp @@ -553,7 +553,7 @@ void TextEditorWidget::update_markdown_preview() Markdown::Document document; if (document.parse(m_editor->text())) { auto html = document.render_to_html(); - auto html_document = Web::parse_html_document(html); + auto html_document = Web::parse_html_document(html, URL::create_with_file_protocol(m_path)); m_html_view->set_document(html_document); } } |