fix links
This commit is contained in:
parent
098ce863fa
commit
9e24fc8115
1 changed files with 1 additions and 1 deletions
|
@ -103,6 +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('[** ', '<b>').replaceAll(' **]', '</b>')
|
||||
.replaceAll('[*** ', '<b><i>').replaceAll(' ***]', '</i></b>')
|
||||
.replaceAll('[_ ', '<u>').replaceAll(' _]', '</u>')
|
||||
|
@ -113,7 +114,6 @@
|
|||
.replaceAll('["\n', '<pre>').replaceAll('\n"]', '</pre>')
|
||||
.replaceAll('["" \n', '<pre>').replaceAll('\n ""]', '</pre>')
|
||||
.replaceAll('\n', '<br/>')
|
||||
.replaceAll(/(https?:\/\/[^ \n]+)/g, '<a href="$1" target="blank">$1</a>')
|
||||
if (postid != -1 || id == '') {
|
||||
if(makeForm) {
|
||||
if(postid != -1)
|
||||
|
|
Loading…
Add table
Reference in a new issue