mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Fixed user Markdown links
This commit is contained in:
@ -208,7 +208,7 @@ App.Util.Misc = function(_, jQuery, marked, promise) {
|
||||
//post, user and tags premalinks
|
||||
text = text.replace(/(^|^\(|(?:[^\]])\(|[\s<>\[\]\)])([+#@][a-zA-Z0-9_-]+)/g, '$1[$2]($2)');
|
||||
text = text.replace(/\]\(@(\d+)\)/g, '](#/post/$1)');
|
||||
text = text.replace(/\]\(+([a-zA-Z0-9_-]+)\)/g, '](#/user/$1)');
|
||||
text = text.replace(/\]\(\+([a-zA-Z0-9_-]+)\)/g, '](#/user/$1)');
|
||||
text = text.replace(/\]\(#([a-zA-Z0-9_-]+)\)/g, '](#/posts/query=$1)');
|
||||
return text;
|
||||
};
|
||||
|
Reference in New Issue
Block a user