fix: links not getting recognised in chat
This commit is contained in:
@@ -59,6 +59,7 @@ const RICH_MARKDOWN_PATTERNS = [
|
|||||||
/(^|\n)(#{1,6}\s|>\s|[-*+]\s|\d+\.\s|```|~~~)/m,
|
/(^|\n)(#{1,6}\s|>\s|[-*+]\s|\d+\.\s|```|~~~)/m,
|
||||||
/!\[[^\]]*\]\([^)]+\)/,
|
/!\[[^\]]*\]\([^)]+\)/,
|
||||||
/\[[^\]]+\]\([^)]+\)/,
|
/\[[^\]]+\]\([^)]+\)/,
|
||||||
|
/https?:\/\/\S+/,
|
||||||
/`[^`\n]+`/,
|
/`[^`\n]+`/,
|
||||||
/\*\*[^*\n]+\*\*|__[^_\n]+__/,
|
/\*\*[^*\n]+\*\*|__[^_\n]+__/,
|
||||||
/\*[^*\n]+\*|_[^_\n]+_/,
|
/\*[^*\n]+\*|_[^_\n]+_/,
|
||||||
|
|||||||
Reference in New Issue
Block a user