Can’t compile swift-markdown anymore?

i can no longer compile swift-markdown at swift-DEVELOPMENT-SNAPSHOT-2022-09-24-a:

.build/checkouts/swift-markdown/Sources/Markdown/Parser/CommonMarkConverter.swift:573:28: error: cannot find 'cmark_gfm_extensions_get_table_cell_colspan' in scope
        let colspan = UInt(cmark_gfm_extensions_get_table_cell_colspan(state.node))
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.build/checkouts/swift-markdown/Sources/Markdown/Parser/CommonMarkConverter.swift:574:28: error: cannot find 'cmark_gfm_extensions_get_table_cell_rowspan' in scope
        let rowspan = UInt(cmark_gfm_extensions_get_table_cell_rowspan(state.node))
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.build/checkouts/swift-markdown/Sources/Markdown/Parser/CommonMarkConverter.swift:583:28: error: cannot find 'CMARK_OPT_TABLE_SPANS' in scope
        var cmarkOptions = CMARK_OPT_TABLE_SPANS

what am i missing?

You need to update the swift-cmark commit that it's checked out. Swift-Markdown doesn't commit its Package.resolved file, so this would need to be done locally on your system.

2 Likes

thank you!

1 Like