From 242cd7b01a9b4b2cad0ec8626b62c15294e54229 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Mon, 25 Nov 2024 21:52:44 +0100 Subject: [PATCH] Fix tests --- Mjml.Net.PostProcessors/AngleSharpPostProcessor.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mjml.Net.PostProcessors/AngleSharpPostProcessor.cs b/Mjml.Net.PostProcessors/AngleSharpPostProcessor.cs index 7dbc608..abffb1f 100644 --- a/Mjml.Net.PostProcessors/AngleSharpPostProcessor.cs +++ b/Mjml.Net.PostProcessors/AngleSharpPostProcessor.cs @@ -1,5 +1,6 @@ using AngleSharp; using AngleSharp.Css; +using AngleSharp.Css.Parser; using AngleSharp.Dom; namespace Mjml.Net; @@ -8,7 +9,7 @@ public sealed class AngleSharpPostProcessor : IPostProcessor, INestingPostProces { private static readonly IConfiguration HtmlConfiguration = Configuration.Default - .WithCss() + .WithCss(new CssParserOptions { IsIncludingUnknownDeclarations = true }) .WithRenderDevice(new DefaultRenderDevice { FontSize = -1 }) .Without();