links markdown support
This commit is contained in:
parent
ab14c76cff
commit
4273b45f39
@ -25,6 +25,8 @@ const encode = (unsafe) => {
|
||||
// Italics
|
||||
.replace(/\*(.*?)\*/g,'<i>$1</i>')
|
||||
|
||||
//links
|
||||
.replace(/\[(.*?)\]\((.*?)\)/g,'<a href="$2">$1</a>')
|
||||
};
|
||||
|
||||
// Middleware to parse URL-encoded and JSON bodies
|
||||
|
Loading…
Reference in New Issue
Block a user