diff --git a/src/lib/components/markdown/markdown.ts b/src/lib/components/markdown/markdown.ts index 765de06d..fc7030b1 100644 --- a/src/lib/components/markdown/markdown.ts +++ b/src/lib/components/markdown/markdown.ts @@ -97,17 +97,3 @@ md.linkify.add('@', { }, }) -md.linkify.add('https:', { - validate: function (text, pos, self) { - const tail = text.slice(pos) - - return tail.length - }, - normalize: function (match) { - const matched = match.url.match(/\/\/([\w-]+.[\w.]+)\/post\/(\d+)/) - if (!matched?.[1] || !matched?.[2]) { - return match - } - match.url = `/post/${matched?.[1]}/${matched?.[2]}` - }, -})