diff --git a/src/markdown.cpp b/src/markdown.cpp index a071857422b..5b0ede9de96 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -838,7 +838,7 @@ static int processLink(GrowBuf &out,const char *data,int,int size) out.addStr("@image html "); out.addStr(link.mid(fd ? 0 : 5)); if (!explicitTitle && !content.isEmpty()) - { + { out.addStr(" \""); out.addStr(content); out.addStr("\""); @@ -2198,6 +2198,26 @@ static QCString processBlocks(const QCString &s,int indent) return out.get(); } +/** returns TRUE if input string docs starts with \@page or \@mainpage command */ +static bool isExplicitPage(const QCString &docs) +{ + int i=0; + const char *data = docs.data(); + int size=docs.size(); + while (i