From 20d03e9667396315c7157c77bfb41f88ef295d9e Mon Sep 17 00:00:00 2001
From: Felipe Barso <77860630+aprendendofelipe@users.noreply.github.com>
Date: Tue, 25 Jun 2024 17:49:19 -0300
Subject: [PATCH] chore: remove `xmlns` from `svg` in mask-image URL to fix
generated Markdown styles
`//` in `xmlns` was being recognized as a comment due to new CSS optimization in Next.js 14.2
This generated invalid CSS.
---
pages/interface/components/Markdown/styles/index.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pages/interface/components/Markdown/styles/index.js b/pages/interface/components/Markdown/styles/index.js
index 4ee0f6f37..5ad86b67b 100644
--- a/pages/interface/components/Markdown/styles/index.js
+++ b/pages/interface/components/Markdown/styles/index.js
@@ -1019,8 +1019,8 @@ export function ViewerStyles() {
content: ' ';
display: inline-block;
background-color: currentColor;
- -webkit-mask-image: url("data:image/svg+xml,");
- mask-image: url("data:image/svg+xml,");
+ -webkit-mask-image: url("data:image/svg+xml,");
+ mask-image: url("data:image/svg+xml,");
}
.markdown-body details,