fix links
This commit is contained in:
parent
4979a96712
commit
8ba78a8e69
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@
|
|||
`<post><div class="content">${date ? (`<h6>${date.toUTCString()}</h6>`) : ''}<h3>${post.author.replaceAll('<','<').replaceAll('>','>')}: ${post.title.replaceAll('<','<').replaceAll('>','>')}</h3>` +
|
||||
post.content.replaceAll('<','<').replaceAll('>','>')
|
||||
.replaceAll('[* ', '<i>').replaceAll(' *]', '</i>')
|
||||
.replaceAll(/(https?:\/\/[^ \n]+)/g, '<a href="$1" target="blank">$1</a>')
|
||||
.replaceAll(/(https?:\/\/[^ \n]+)/g, '<a href="$1" target="_blank">$1</a>')
|
||||
.replaceAll('[** ', '<b>').replaceAll(' **]', '</b>')
|
||||
.replaceAll('[*** ', '<b><i>').replaceAll(' ***]', '</i></b>')
|
||||
.replaceAll('[_ ', '<u>').replaceAll(' _]', '</u>')
|
||||
|
|
Loading…
Add table
Reference in a new issue