-
Notifications
You must be signed in to change notification settings - Fork 26
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
Code Block Component #310
Comments
Sorry for the long wait. The core feature of sveltepress is content-centered static site generator. This means runtime code highlight feature is a little bit deviate from the main point. However the component you requested can still be implemented in the theme package. |
No worries!
Anything I can do to get the ball rolling on it? |
The default theme package can hold a component like that. And PRs are welcomed. |
Thank you so much! There's no rush at all. |
Describe the problem
I'd like to be able to auto generate certain bits of reference code.
Describe the proposed solution
I would like to see a component that allows us to just throw down a
<CodeBlock source={my_code} lang={my_codes_language} />
in my own Svelte components.Alternatives considered
I've tried just writing out a Markdown block and using
{}
syntax to put in my autogenerated reference code, but it doesn't do the replacement.Importance
would make my life easier
The text was updated successfully, but these errors were encountered: