From a05a7ae2e65b9e438327d4a50c81df18f2b49a4d Mon Sep 17 00:00:00 2001
From: albert-github <albert.tests@gmail.com>
Date: Tue, 6 Oct 2020 17:59:23 +0200
Subject: issue #8078 Warning and extra text when using Markdown as mainpage

Also replace the `@` in a label.
---
 src/markdown.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/markdown.cpp b/src/markdown.cpp
index ae78533..d7b9186 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -2661,7 +2661,7 @@ QCString markdownFileNameToId(const QCString &fileName)
   QCString baseFn  = stripFromPath(QFileInfo(fileName).absFilePath().utf8());
   int i = baseFn.findRev('.');
   if (i!=-1) baseFn = baseFn.left(i);
-  QCString baseName = substitute(substitute(substitute(baseFn," ","_"),"/","_"),":","_");
+  QCString baseName = substitute(substitute(substitute(substitute(baseFn," ","_"),"/","_"),":","_"),"@","_");
   //printf("markdownFileNameToId(%s)=md_%s\n",qPrint(fileName),qPrint(baseName));
   return "md_"+baseName;
 }
-- 
cgit v0.12

