mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-13 18:58:52 +01:00
Replace "range" indicators with mathematical tilde in LCSC provider (#989)
* Replace "range" indicators with mathematical tilde symbols in LCSC provider * Improve comment
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user