We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cae6f69 commit e8931e3Copy full SHA for e8931e3
Sources/MarkdownUI/Shared/MarkdownStyle.swift
@@ -129,12 +129,12 @@ public extension MarkdownStyle {
129
func makeHeadingFont(_ level: Int) -> Font? {
130
let fontSizeMultiple = headingFontSizeMultiples[min(level, headingFontSizeMultiples.count) - 1]
131
let fontSize = round(fontSizeMultiple * font.pointSize)
132
- let font = Font(descriptor: font.fontDescriptor, size: fontSize)
+ let headingFont = Font(descriptor: font.fontDescriptor, size: fontSize)
133
134
#if canImport(UIKit)
135
- return font.bold()
+ return headingFont.bold()
136
#elseif os(macOS)
137
- return font?.bold()
+ return headingFont?.bold()
138
#endif
139
}
140
0 commit comments