🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
17
node_modules/@astrojs/prism/Prism.astro
generated
vendored
Normal file
17
node_modules/@astrojs/prism/Prism.astro
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
import { runHighlighterWithAstro } from './dist/highlighter';
|
||||
|
||||
export interface Props {
|
||||
class?: string;
|
||||
lang?: string;
|
||||
code: string;
|
||||
}
|
||||
|
||||
const { class: className, lang, code } = Astro.props as Props;
|
||||
const { classLanguage, html } = runHighlighterWithAstro(lang, code);
|
||||
---
|
||||
|
||||
<pre
|
||||
class={[className, classLanguage]
|
||||
.filter(Boolean)
|
||||
.join(' ')}><code class={classLanguage} set:html={html} /></pre>
|
||||
Loading…
Add table
Add a link
Reference in a new issue