diff --git a/Elwig/Documents/Document.cshtml.cs b/Elwig/Documents/Document.cshtml.cs index 28c5236..3cbff9f 100644 --- a/Elwig/Documents/Document.cshtml.cs +++ b/Elwig/Documents/Document.cshtml.cs @@ -3,14 +3,12 @@ using System.Threading.Tasks; using System.IO; using Elwig.Helpers; using System.Collections.Generic; -using System.Text.RegularExpressions; using System.Linq; namespace Elwig.Documents { public abstract partial class Document : IDisposable { private TempFile? _pdfFile = null; - private string? _renderedHtml = null; public bool ShowFoldMarks = App.Config.Debug; @@ -39,18 +37,6 @@ namespace Elwig.Documents { Date = DateTime.Today; } - [GeneratedRegex(@".*?\s*", RegexOptions.IgnoreCase | RegexOptions.Singleline | RegexOptions.Compiled)] - private static partial Regex GeneratedDocumentHeaderRegex(); - private static readonly Regex DocumentHeaderRegex = GeneratedDocumentHeaderRegex(); - - [GeneratedRegex(@"