Support URI payloads

This commit is contained in:
Infi
2024-08-27 17:26:34 +02:00
parent 3da41c86fc
commit 0482f20fdf
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -85,6 +85,9 @@ public class Processing
} }
userContent = Sanitizer.Sanitize(userContent); userContent = Sanitizer.Sanitize(userContent);
if (text.Link is UriPayload uri)
userContent = $"<a href=\"{uri.Uri}\" target=\"_blank\">{userContent}</a>";
return noColor return noColor
? userContent ? userContent
: $"<span style=\"color:rgba({color.r}, {color.g}, {color.b}, {color.a})\">{userContent}</span>"; : $"<span style=\"color:rgba({color.r}, {color.g}, {color.b}, {color.a})\">{userContent}</span>";
+4
View File
@@ -45,6 +45,10 @@ html {
font-size: 16px; font-size: 16px;
} }
span > a {
color: inherit;
}
/* layout and global styles */ /* layout and global styles */
body { body {
padding: 50px; padding: 50px;