PDPA Features: ✅ Cookie consent banner ✅ Consent logging API ✅ Admin dashboard ✅ Privacy Policy ✅ Terms & Conditions Technical: ✅ Astro 5.x + Tailwind v4 ✅ Docker on port 80 ✅ SQLite database ✅ 15 pages built Ready for Easypanel deployment.
17 lines
654 B
TypeScript
17 lines
654 B
TypeScript
import type { Root } from 'hast';
|
|
type Highlighter = (code: string, language: string, options?: {
|
|
meta?: string;
|
|
}) => Promise<Root | string>;
|
|
export declare const defaultExcludeLanguages: string[];
|
|
/**
|
|
* A hast utility to syntax highlight code blocks with a given syntax highlighter.
|
|
*
|
|
* @param tree
|
|
* The hast tree in which to syntax highlight code blocks.
|
|
* @param highlighter
|
|
* 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, excludeLanguages?: string[]): Promise<void>;
|
|
export {};
|