Add Nostr links

This commit is contained in:
Dennis Reimann
2023-02-03 22:59:54 +01:00
parent 03660f3216
commit 4142d21d0f
6 changed files with 23 additions and 11 deletions

View File

@@ -36,10 +36,15 @@ const truncate = (str, wordCount) => {
return [head, tail]
}
const nostrUrl = pubkey => pubkey
? `https://snort.social/p/${pubkey}`
: null
module.exports = {
markdown: mdTransformer.render,
replacements,
slugify,
stripHTML,
truncate
truncate,
nostrUrl
}