How to parse markdown with Swift WebAssembly?

it seems everybody else doing SPAs today is parsing Markdown in the client, except for us Swift developers.

naïvely, i tried using the swift-markdown library in a project that compiles to WebAssembly, and ran into these errors, which seem to originate from swift-cmark:

swift-cmark/src/syntax_extension.c:1:10: fatal error: 'assert.h' file not found
    1 | #include <assert.h>
      |          ^~~~~~~~~~
1 error generated.
swift-cmark/src/utf8.c:1:10: fatal error: 'stdlib.h' file not found
    1 | #include <stdlib.h>
      |          ^~~~~~~~~~
swift-cmark/src/xml.c:1:10: fatal error: 'assert.h' file not found
    1 | #include <assert.h>
      |          ^~~~~~~~~~
swift-cmark/src/render.c:2:10: fatal error: 'stdlib.h' file not found
    2 | #include <stdlib.h>
      |          ^~~~~~~~~~

what do i need in order to parse Markdown with Swift WebAssembly?