Fix broken markdown renderer

This switches away from the old markdown renderer to the new one at
https://github.com/damus-io/swift-markdown-ui

Changelog-Fixed: Fix broken markdown renderer
This commit is contained in:
William Casarin
2023-07-16 14:32:24 -07:00
parent bf1175f22c
commit bd4c29604f
8 changed files with 26 additions and 175 deletions

View File

@@ -1243,7 +1243,7 @@ func render_notification_content_preview(cache: EventCache, ev: NostrEvent, prof
}
switch artifacts {
case .parts:
case .longform:
// we should never hit this until we have more note types built out of parts
// since we handle this case above in known_kind == .longform
return String(ev.content.prefix(prefix_len))