Support URI payloads
This commit is contained in:
@@ -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>";
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user