Skip to content

Error while compiling after the last merge. #39

@lukacs-m

Description

@lukacs-m

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions