From 782a841a8c225428cc9561706e3c0fde53f92e3f Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Mon, 14 Apr 2025 09:14:39 +0200 Subject: [PATCH 1/2] Use target attribute to identify external link It seems crosslinks get resolved to full urls and also start with http --- src/Elastic.Markdown/Assets/markdown/typography.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Elastic.Markdown/Assets/markdown/typography.css b/src/Elastic.Markdown/Assets/markdown/typography.css index 5131ebc8c..2143b0c4d 100644 --- a/src/Elastic.Markdown/Assets/markdown/typography.css +++ b/src/Elastic.Markdown/Assets/markdown/typography.css @@ -51,7 +51,7 @@ a { @apply font-body text-blue-elastic hover:text-blue-elastic-100 underline; - &[href^='http']::after { + &[target="_blank"]::after { @apply ml-0.5; content: url("data:image/svg+xml; utf8, "); } From 299bcd70569863f12c3e55d357c00aecf9915e5f Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Mon, 14 Apr 2025 09:17:10 +0200 Subject: [PATCH 2/2] fix formatting --- src/Elastic.Markdown/Assets/markdown/typography.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Elastic.Markdown/Assets/markdown/typography.css b/src/Elastic.Markdown/Assets/markdown/typography.css index 2143b0c4d..947c11e5a 100644 --- a/src/Elastic.Markdown/Assets/markdown/typography.css +++ b/src/Elastic.Markdown/Assets/markdown/typography.css @@ -51,7 +51,7 @@ a { @apply font-body text-blue-elastic hover:text-blue-elastic-100 underline; - &[target="_blank"]::after { + &[target='_blank']::after { @apply ml-0.5; content: url("data:image/svg+xml; utf8, "); }