Skip to content

Commit 242cd7b

Browse files
Fix tests
1 parent 2246579 commit 242cd7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Mjml.Net.PostProcessors/AngleSharpPostProcessor.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using AngleSharp;
22
using AngleSharp.Css;
3+
using AngleSharp.Css.Parser;
34
using AngleSharp.Dom;
45

56
namespace Mjml.Net;
@@ -8,7 +9,7 @@ public sealed class AngleSharpPostProcessor : IPostProcessor, INestingPostProces
89
{
910
private static readonly IConfiguration HtmlConfiguration =
1011
Configuration.Default
11-
.WithCss()
12+
.WithCss(new CssParserOptions { IsIncludingUnknownDeclarations = true })
1213
.WithRenderDevice(new DefaultRenderDevice { FontSize = -1 })
1314
.Without<ICssDefaultStyleSheetProvider>();
1415

0 commit comments

Comments
 (0)