-
Notifications
You must be signed in to change notification settings - Fork 463
Description
Hello,
first of all thank you for the work done on this library.
It seems that the last merge has brought in an error.
When I try to compile my project with MarkdownUI I get and error coming from the lib and more specifically the following function.
func makeHeadingFont(_ level: Int) -> Font? { let fontSizeMultiple = headingFontSizeMultiples[min(level, headingFontSizeMultiples.count) - 1] let fontSize = round(fontSizeMultiple * font.pointSize) let font = Font(descriptor: font.fontDescriptor, size: fontSize) #if canImport(UIKit) return font.bold() #elseif os(macOS) return font?.bold() #endif }
To be more precise the line let font = Font(descriptor: font.fontDescriptor, size: fontSize)
produces a Variable used within its own initial value
error.
Hope it helps.