Skip to content
New issue

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 get the output HTML without using the component? e.g. compile() function #77

Open
matfantinel opened this issue Sep 12, 2023 · 1 comment

Comments

@matfantinel
Copy link

First of all, thanks for the work on this! I was able to get it all working with some custom renderers on my SvelteKit website and it all works well, when rendering with <SvelteMarkdown />

The things is, I'm also generating a RSS feed (xml file), and would like to have the generated HTML outputted in there as well. However, since the XML is generated in a +server.ts, I don't have access to the SvelteMarkdown component. Still I'd love to have the same output, and not use another library to compile it server side.

Here's how the XML file is generated.

@matfantinel
Copy link
Author

For the record, for now I decided to use marked directly, and made a simpler version of the renderers for RSS. This commit has more details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant