full site update
This commit is contained in:
5
node_modules/@astrojs/markdown-remark/dist/highlight.d.ts
generated
vendored
5
node_modules/@astrojs/markdown-remark/dist/highlight.d.ts
generated
vendored
@@ -1,7 +1,8 @@
|
||||
import type { Root } from 'hast';
|
||||
type Highlighter = (code: string, language: string, options?: {
|
||||
meta?: string;
|
||||
}) => Promise<string>;
|
||||
}) => Promise<Root | string>;
|
||||
export declare const defaultExcludeLanguages: string[];
|
||||
/**
|
||||
* A hast utility to syntax highlight code blocks with a given syntax highlighter.
|
||||
*
|
||||
@@ -11,5 +12,5 @@ type Highlighter = (code: string, language: string, options?: {
|
||||
* A function which receives the code and language, and returns the HTML of a syntax
|
||||
* highlighted `<pre>` element.
|
||||
*/
|
||||
export declare function highlightCodeBlocks(tree: Root, highlighter: Highlighter): Promise<void>;
|
||||
export declare function highlightCodeBlocks(tree: Root, highlighter: Highlighter, excludeLanguages?: string[]): Promise<void>;
|
||||
export {};
|
||||
|
Reference in New Issue
Block a user