mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
move default markdown code component to shiki
This commit is contained in:
parent
38fc7d64a7
commit
37d3820ecd
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ export async function renderMarkdown(content: string, opts?: MarkdownRenderingOp
|
|||
let { remarkPlugins = [], rehypePlugins = [] } = opts ?? {};
|
||||
const scopedClassName = opts?.$?.scopedClassName;
|
||||
const mode = opts?.mode ?? 'mdx';
|
||||
const syntaxHighlight = opts?.syntaxHighlight ?? 'prism';
|
||||
const syntaxHighlight = opts?.syntaxHighlight ?? 'shiki';
|
||||
const shikiConfig = opts?.shikiConfig ?? {};
|
||||
const isMDX = mode === 'mdx';
|
||||
const { headers, rehypeCollectHeaders } = createCollectHeaders();
|
||||
|
|
Loading…
Reference in a new issue