extract markdown link

pull/349/head
Pete Matsyburka 1 year ago
parent 5643380916
commit c4a91c2b34

@ -51,7 +51,7 @@ export default {
}, },
computed: { computed: {
items () { 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: { methods: {

Loading…
Cancel
Save