pngwn / MDsveX

A markdown preprocessor for Svelte.
https://mdsvex.pngwn.io
MIT License
2.47k stars 103 forks source link

Compile broken? #653

Open jafupy opened 2 months ago

jafupy commented 2 months ago

Hi so Im pretty sure the compile function is broken. +page.svelte

<script lang="ts">
    import { compile } from 'mdsvex';

    const code = `
    # Hi
    hii
    `;
    let body: string;
    export async function load() {
        body = await compile(code, {});
    }
</script>

{@html body}

error:

image

Yes the 2nd error is caused by MDSvex.

stolinski commented 1 month ago

Also seeing this same error. v0.12.3

pngwn commented 1 month ago

Yeah this is broken. Travelling atm but will fix and release when I'm on solid ground.