We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to make imports and custom components inside md work with compile method? At official docs there is an example:
import { compile } from 'mdsvex'; const transformed_code = await compile(` <script> import Chart from './Chart.svelte'; </script> # Hello friends <Chart /> `, mdsvexOptions );`
But at Svelte 5 with such code:
// api import { compile } from 'mdsvex'; export async function GET() { ... const { code } = await compile(` <script> import Test from '$lib/Test.svelte' </script> # Hi <Test /> `); console.log({ code }) }
The result is:
{ code: '<script>\n' + " import Test from '$lib/Test.svelte'\n" + ' </script>\n' + '\n' + ' <h1>Hi</h1>\n' + ' <Test />\n' }
It converted md# to h1 but it doesn't recognize internal imports and custom component. Thank you
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is it possible to make imports and custom components inside md work with compile method?
At official docs there is an example:
But at Svelte 5 with such code:
The result is:
It converted md# to h1 but it doesn't recognize internal imports and custom component.
Thank you
The text was updated successfully, but these errors were encountered: