You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a project where we store markdown data in the database and need to fetch this on the server to then render on the frontend.
Reading the docs the compile function looks to be the way to implement this but as this spits out svelte code wrapped in a string its not possible to render it using `{@render content()} and rendering using {@html content} gives wierd outcomes:
constquestionData={title: 'Sample Question',content: `## This is a sample question. It is used to test the FAQ page when no question is found. \`\`\`ts const sample = 'sample'; \`\`\` `,slug: 'sample-question'};constcompiledContent=awaitcompile(questionData.content);
We have a project where we store markdown data in the database and need to fetch this on the server to then render on the frontend.
Reading the docs the compile function looks to be the way to implement this but as this spits out svelte code wrapped in a string its not possible to render it using `{@render content()} and rendering using {@html content} gives wierd outcomes:
The text was updated successfully, but these errors were encountered: