refactor: removed unused functions

This commit is contained in:
raizasafeel
2026-02-03 16:14:58 +05:30
parent dc25b408e6
commit 3b49aac1b3

View File

@@ -421,16 +421,6 @@ export class Markdown {
return { alt: '', url: '' }
}
_isLink(text) {
return /\[.+?\]\(.+?\)/.test(text)
}
_extractLink(text) {
const match = text.match(/\[(.+?)\]\((.+?)\)/)
if (match) return { text: match[1], url: match[2] }
return { text: '', url: '' }
}
_isEmbed(text) {
return /^https?:\/\/.+/.test(text.trim())
}