remove markdown support

Will re-add once there is a markdown spec
This commit is contained in:
William Casarin
2022-11-18 12:31:08 -08:00
parent 9efc900851
commit 366d46dfab

View File

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