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)
To be more precise the line let font = Font(descriptor: font.fontDescriptor, size: fontSize) produces a Variable used within its own initial value error.
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)
To be more precise the line
let font = Font(descriptor: font.fontDescriptor, size: fontSize)
produces aVariable used within its own initial value
error.Hope it helps.