mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 22:34:25 +01:00
Update last notes design + add npub to relays list
This commit is contained in:
5
utils.go
5
utils.go
@@ -443,11 +443,14 @@ func basicFormatting(input string) string {
|
||||
return strings.Join(processedLines, "<br/>")
|
||||
}
|
||||
|
||||
func basicNostrFormatting(input string) string {
|
||||
func previewNotesFormatting(input string) string {
|
||||
|
||||
lines := strings.Split(input, "\n")
|
||||
var processedLines []string
|
||||
for _, line := range lines {
|
||||
if strings.TrimSpace(line) == "" {
|
||||
continue
|
||||
}
|
||||
processedLine := shortenNostrURLs(line)
|
||||
processedLines = append(processedLines, processedLine)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user