Skip to content

Commit 410f0fe

Browse files
committed
Adapt to MarkdownUI v2 font size customization
1 parent fb6c11c commit 410f0fe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

V2exOS/Views/TopicDetail/TopicDetailView.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,12 @@ struct TopicDetailView: View {
6464

6565
Markdown(topic.content ?? "")
6666
#if os(macOS)
67-
.markdownStyle(MarkdownStyle(font: .system(size: settingsConfig.fontSize)))
67+
.markdownTheme(
68+
Theme()
69+
.text {
70+
FontSize(settingsConfig.fontSize)
71+
}
72+
)
6873
#endif
6974
#if os(tvOS)
7075
.focusable()

0 commit comments

Comments
 (0)