Browse Source

Removing markdown breaks other things so revert for now

This reverts commit 366d46dfab.
profile-edit
William Casarin 2 years ago
parent
commit
93798ea79e
  1. 8
      damus/Views/NoteContentView.swift

8
damus/Views/NoteContentView.swift

@ -58,9 +58,15 @@ struct NoteContentView: View {
@State var artifacts: NoteArtifacts
func MainContent() -> some View {
let md_opts: AttributedString.MarkdownParsingOptions =
.init(interpretedSyntax: .inlineOnlyPreservingWhitespace)
return VStack(alignment: .leading) {
if let txt = try? AttributedString(markdown: artifacts.content, options: md_opts) {
Text(txt)
} else {
Text(artifacts.content)
}
if show_images && artifacts.images.count > 0 {
ImageCarousel(urls: artifacts.images)
}

Loading…
Cancel
Save