3.1.0 • Published 28 days ago
@astrojs/prism v3.1.0
@astrojs/prism
Supports Prism highlighting in Astro projects
Component
This package exports a component to support highlighting inside an Astro file. Example:
---
import { Prism } from '@astrojs/prism';
---
<Prism lang="js" code={`const foo = 'bar';`} />
Internal
This package exports a runHighlighterWithAstro
function to highlight while making sure the Astro language is loaded beforehand
import { runHighlighterWithAstro } from '@astrojs/prism';
runHighlighterWithAstro(
`
---
const helloAstro = 'Hello, Astro!';
---
<div>{helloAstro}</div>
`,
'astro'
);
3.1.0
28 days ago
0.0.0-10745-20240410180016
28 days ago
3.0.0-beta.0
9 months ago
3.0.0-rc.1
9 months ago
3.0.0
8 months ago
2.1.2
12 months ago
0.0.0-vercel-json-20230313194145
1 year ago
0.0.0-cloudcannon-fix-20230306211609
1 year ago
2.1.1
1 year ago
2.1.0
1 year ago
0.0.0-vercel-json-20230313193421
1 year ago
0.0.0-experimental-assets-20230307131344
1 year ago
0.0.0-vercel-json-20230313201834
1 year ago
0.0.0-vercel-json-20230313200730
1 year ago
0.0.0-vercel-json-20230313191807
1 year ago
2.0.0-beta.0
1 year ago
2.0.0
1 year ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
0.5.0
2 years ago
0.7.0
2 years ago
0.6.1
2 years ago
0.6.0
2 years ago
0.4.1-next.0
2 years ago
0.4.1
2 years ago
0.4.0
2 years ago
0.3.0
2 years ago
0.3.0-next.0
3 years ago
0.2.2
3 years ago
0.2.1
3 years ago
0.2.0
3 years ago