- reduced custom styles, use mostly tailwind classes
- updated markdown css for extrausercontent
This commit is contained in:
@@ -28,7 +28,7 @@ export function formatMessageText(message, username) {
|
||||
|
||||
function highlightUsername(message, username) {
|
||||
const pattern = new RegExp('@?' + username.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'), 'gi');
|
||||
return message.replace(pattern, '<span class="highlighted">$&</span>');
|
||||
return message.replace(pattern, '<span class="highlighted font-bold bg-orange-500">$&</span>');
|
||||
}
|
||||
|
||||
function linkify(text, rawText) {
|
||||
@@ -126,8 +126,7 @@ function getInstagramEmbedFromURL(url) {
|
||||
|
||||
function isImage(url) {
|
||||
const re = /\.(jpe?g|png|gif)$/i;
|
||||
const isImage = re.test(url);
|
||||
return isImage;
|
||||
return re.test(url);
|
||||
}
|
||||
|
||||
function getImageForURL(url) {
|
||||
|
||||
Reference in New Issue
Block a user