From 4e9e82d9f1832486221cf3f8b79d9925701079ba Mon Sep 17 00:00:00 2001 From: d-buchmann Date: Sat, 6 Sep 2025 19:43:50 +0200 Subject: [PATCH] Replace "range" indicators with mathematical tilde in LCSC provider (#989) * Replace "range" indicators with mathematical tilde symbols in LCSC provider * Improve comment --- src/Services/InfoProviderSystem/Providers/LCSCProvider.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Services/InfoProviderSystem/Providers/LCSCProvider.php b/src/Services/InfoProviderSystem/Providers/LCSCProvider.php index 8db53f76..2d83fc7c 100755 --- a/src/Services/InfoProviderSystem/Providers/LCSCProvider.php +++ b/src/Services/InfoProviderSystem/Providers/LCSCProvider.php @@ -165,6 +165,9 @@ class LCSCProvider implements InfoProviderInterface if ($field === null) { return null; } + // Replace "range" indicators with mathematical tilde symbols + // so they don't get rendered as strikethrough by Markdown + $field = preg_replace("/~/", "\u{223c}", $field); return strip_tags($field); }