Skip to content

Commit e8931e3

Browse files
committed
Fix #39
1 parent cae6f69 commit e8931e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/MarkdownUI/Shared/MarkdownStyle.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ public extension MarkdownStyle {
129129
func makeHeadingFont(_ level: Int) -> Font? {
130130
let fontSizeMultiple = headingFontSizeMultiples[min(level, headingFontSizeMultiples.count) - 1]
131131
let fontSize = round(fontSizeMultiple * font.pointSize)
132-
let font = Font(descriptor: font.fontDescriptor, size: fontSize)
132+
let headingFont = Font(descriptor: font.fontDescriptor, size: fontSize)
133133

134134
#if canImport(UIKit)
135-
return font.bold()
135+
return headingFont.bold()
136136
#elseif os(macOS)
137-
return font?.bold()
137+
return headingFont?.bold()
138138
#endif
139139
}
140140

0 commit comments

Comments
 (0)