extract markdown link

This commit is contained in:
Pete Matsyburka
2024-08-01 01:31:25 +03:00
parent 5643380916
commit c4a91c2b34
@@ -51,7 +51,7 @@ export default {
},
computed: {
items () {
return snarkdown(this.string.replace(/\n/g, '<br>')).split(htmlSplitRegexp)
return snarkdown(this.string.replace(/(?<!\(\s*)(https?:\/\/[^\s]+)(?!\s*\))/g, '[$1]($1)').replace(/\n/g, '<br>')).split(htmlSplitRegexp)
}
},
methods: {