Browse Source

Update Index.cshtml.cs

pull/20525/head
liangshiwei 2 years ago
parent
commit
478e102777
  1. 2
      modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs

2
modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs

@ -475,7 +475,7 @@ namespace Volo.Docs.Pages.Documents.Project
var match = Regex.Match(Document.Content, @"#(?<PageTitle>.+)");
if (match.Success && match.Groups.TryGetValue("PageTitle", out var group))
{
DocumentPageTitle = Regex.Replace(group.Value, "<.*?>", string.Empty);
DocumentPageTitle = Regex.Replace(group.Value, "<.*?>", string.Empty).Trim();
}
}

Loading…
Cancel
Save