Skip to content

Commit

Permalink
[FIXED #36] body class not rendered correctly + ensure doctype is ren…
Browse files Browse the repository at this point in the history
…dered
  • Loading branch information
w8tcha committed Apr 11, 2024
1 parent 7414c05 commit 5387e90
Show file tree
Hide file tree
Showing 33 changed files with 79 additions and 46 deletions.
2 changes: 1 addition & 1 deletion BootstrapEmailNet.Tests/BootstrapEmailTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void TestStringInput()
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
2 changes: 1 addition & 1 deletion BootstrapEmailNet.Tests/tests/output/components/alert.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
2 changes: 1 addition & 1 deletion BootstrapEmailNet.Tests/tests/output/components/badge.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
2 changes: 1 addition & 1 deletion BootstrapEmailNet.Tests/tests/output/components/card.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
2 changes: 1 addition & 1 deletion BootstrapEmailNet.Tests/tests/output/components/grid.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
2 changes: 1 addition & 1 deletion BootstrapEmailNet.Tests/tests/output/components/hr.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
2 changes: 1 addition & 1 deletion BootstrapEmailNet.Tests/tests/output/components/stack.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
2 changes: 1 addition & 1 deletion BootstrapEmailNet.Tests/tests/output/components/table.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
2 changes: 1 addition & 1 deletion BootstrapEmailNet.Tests/tests/output/utilities/align.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
2 changes: 1 addition & 1 deletion BootstrapEmailNet.Tests/tests/output/utilities/color.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
2 changes: 1 addition & 1 deletion BootstrapEmailNet.Tests/tests/output/utilities/sizing.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Compiled with Bootstrap Email version: 1.4.2 -->
<!-- Compiled with Bootstrap Email version: 1.4.3 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="x-apple-disable-message-reformatting">
Expand Down
10 changes: 1 addition & 9 deletions BootstrapEmailNet/BootstrapEmail.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>1.4.2</Version>
<Version>1.4.3</Version>
<Title>Bootstrap Email</Title>
<PackageIcon>bootstrap-email.png</PackageIcon>
<Description>Bootstrap stylesheet, compiler, and inliner for responsive and consistent emails with the Bootstrap syntax you know and love.</Description>
Expand Down Expand Up @@ -235,18 +235,10 @@
</ItemGroup>

<ItemGroup>
<Content Include="bin\Release\net7.0\libsass32.dll">
<Pack>true</Pack>
<PackagePath>lib\net7.0</PackagePath>
</Content>
<Content Include="bin\Release\net7.0\libsass64.dll">
<Pack>true</Pack>
<PackagePath>lib\net7.0</PackagePath>
</Content>
<Content Include="bin\Release\net8.0\libsass32.dll">
<Pack>true</Pack>
<PackagePath>lib\net8.0</PackagePath>
</Content>
<Content Include="bin\Release\net8.0\libsass64.dll">
<Pack>true</Pack>
<PackagePath>lib\net8.0</PackagePath>
Expand Down
14 changes: 8 additions & 6 deletions BootstrapEmailNet/Compiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,14 @@ public Compiler(string input, ConfigStore config, InputType type = InputType.Str

if (!Directory.Exists(Path.Combine(AppContext.BaseDirectory, this.Config.SassLocation())))
{
GetEmbeddedCoreFiles();
GetEmbeddedCoreFiles();
}

var html = this.AddLayout(this.InputHtml);

this.SassCompiler = new SassCompiler(new SassOptions { IncludePaths = this.Config.SassLoadPaths() });
html = EnsureDoctype.Replace(html);

this.SassCompiler = new SassCompiler(new SassOptions { IncludePaths = this.Config.SassLoadPaths() });

this.PreMailer = new PreMailer(html);

Expand Down Expand Up @@ -201,7 +203,7 @@ public void InlineCss()
/// </summary>
public void ConfigureHtml()
{
HeadStyle.Build(this.Document, this.Config);
HeadStyle.Build(this.Document, this.Config);
new AddMissingMetaTags(this.Document, this.Config).Build();
new VersionComment(this.Document, this.Config).Build();

Expand All @@ -227,13 +229,13 @@ public string FinalizeDocument()
/// <summary>
/// Gets the embedded core files.
/// </summary>
private void GetEmbeddedCoreFiles()
private static void GetEmbeddedCoreFiles()
{
var assembly = typeof(BootstrapEmail).GetTypeInfo().Assembly;

foreach (var s in assembly.GetManifestResourceNames())
{
WriteResourceToFile(assembly, s,
WriteResourceToFile(assembly, s,
s.Replace("BootstrapEmail.Net.", "").Replace("scss.", "scss\\").Replace("components.", "components\\")
.Replace("helpers.", "helpers\\").Replace("utilities.", "utilities\\")
.Replace("variables.", "variables\\").Replace("templates.", "templates\\").Replace("core.", "core\\"));
Expand All @@ -246,7 +248,7 @@ private void GetEmbeddedCoreFiles()
/// <param name="assembly">The assembly.</param>
/// <param name="resourceName">Name of the resource.</param>
/// <param name="fileName">Name of the file.</param>
public void WriteResourceToFile(Assembly assembly, string resourceName, string fileName)
public static void WriteResourceToFile(Assembly assembly, string resourceName, string fileName)
{
using var resource = assembly.GetManifestResourceStream(resourceName);

Expand Down
2 changes: 1 addition & 1 deletion BootstrapEmailNet/ConfigStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class ConfigStore
/// array of directories for loading sass imports.
/// </summary>
/// <value>array of directories for loading sass imports.</value>
public string[] sass_load_paths { get; set; } = Array.Empty<string>();
public string[] sass_load_paths { get; set; } = [];

/// <summary>
/// path to tmp folder for sass cache
Expand Down
10 changes: 8 additions & 2 deletions BootstrapEmailNet/Converters/Body.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
namespace BootstrapEmail.Net.Converters;

/// <summary>
/// Class Body.
/// </summary>
public class Body : Base
{
/// <summary>
Expand All @@ -12,7 +15,10 @@ public Body(IHtmlDocument document, Config config)
{
}

public virtual void Build()
/// <summary>
/// Builds this instance.
/// </summary>
public virtual void Build()
{
var body = this.Document.QuerySelector("body");

Expand All @@ -22,7 +28,7 @@ public virtual void Build()
}

var templateContent = new TemplateContent(
$"{body.GetAttribute("class")}body",
$"{body.GetAttribute("class")} body",
body.InnerHtml.Replace("\n", string.Empty));

body.InnerHtml = $"\r\n {this.Template("body", templateContent)}";
Expand Down
25 changes: 25 additions & 0 deletions BootstrapEmailNet/Converters/EnsureDoctype.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
namespace BootstrapEmail.Net.Converters;

/// <summary>
/// Class EnsureDoctype.
/// </summary>
public static class EnsureDoctype
{
/// <summary>
/// Replaces the specified HTML.
/// </summary>
/// <param name="html">The HTML.</param>
/// <returns>System.String.</returns>
public static string Replace(string html)
{
const string docType =
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">";

// ensure the proper XHTML doctype which ensures the best compatibility in email clients
// https://github.com/bootstrap-email/bootstrap-email/discussions/168
var docTypeRegex =
new Regex(@"^<!DOCTYPE.*(\[[\s\S]*?\])?>", RegexOptions.None, TimeSpan.FromMilliseconds(100));

return !docTypeRegex.IsMatch(html) ? $"{docType}\n{html}" : html;
}
}

0 comments on commit 5387e90

Please sign in to comment.