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
Adding more syntax highlighting #15
Comments
Currently there's no options, we should add a new key to |
@devMYC You can directly import the additional prismjs components/plugins to your actual blog project main.js/ts file, and it will work. For me, I created a prismjs-extensions.ts file like this import "https://esm.sh/prismjs@1.27.0/components/prism-typescript";
import "https://esm.sh/prismjs@1.27.0/components/prism-ruby";
import "https://esm.sh/prismjs@1.27.0/components/prism-python";
import "https://esm.sh/prismjs@1.27.0/components/prism-go"; Then in my import "./prismjs-extensions.ts";
blog({
...
}) |
@yidingww I will give it a try, thanks. |
@yidingww awesome, it works for me. |
I tried
|
Is there any way to change the prism theme? |
It seems that
gfm
has turned on syntax highlighting for JavaScript, Markdown, and HTML by default. And I saw that syntax highlighting for C is also supported by this repo.deno_blog/deps.ts
Line 33 in a4772ab
Is there a preferred way to support other languages?
The text was updated successfully, but these errors were encountered: