diff --git a/tdemarkdown/markdown_part.cpp b/tdemarkdown/markdown_part.cpp index 7ea3d99b1..255ed7280 100644 --- a/tdemarkdown/markdown_part.cpp +++ b/tdemarkdown/markdown_part.cpp @@ -79,7 +79,7 @@ bool MarkdownPart::openURL(const KURL& u) data[data.size()-1] = '\0'; } begin(u); - TQString parsed(parse((MD_CHAR*) data.data())); + TQString parsed(parse((MD_CHAR*) data.data(), u.fileName().utf8().data())); write(parsed); end(); } @@ -89,13 +89,13 @@ bool MarkdownPart::openURL(const KURL& u) return true; } -TQString& MarkdownPart::parse(MD_CHAR* document) +TQString& MarkdownPart::parse(MD_CHAR* document, MD_CHAR* title) { m_buffer = "\n"; m_buffer += "\n"; m_buffer += "
\n"; m_buffer += " \n"; - m_buffer += "