├── .cz.json ├── .gitignore ├── LICENSE ├── README.md ├── components ├── CodeBlock.astro └── index.ts ├── env.d.ts ├── package.json ├── pnpm-lock.yaml ├── src ├── index.ts ├── utils │ ├── color-contrast.ts │ ├── copy-button.ts │ ├── html-entities.ts │ ├── makeComponentNode.ts │ ├── shiki-block.ts │ ├── shiki-line.ts │ ├── syntax-highlighting-theme.ts │ ├── types.ts │ └── user-config.ts └── virtual.d.ts └── tsconfig.json /.cz.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thewebforge/astro-code-blocks/HEAD/.cz.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thewebforge/astro-code-blocks/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thewebforge/astro-code-blocks/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thewebforge/astro-code-blocks/HEAD/README.md -------------------------------------------------------------------------------- /components/CodeBlock.astro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thewebforge/astro-code-blocks/HEAD/components/CodeBlock.astro -------------------------------------------------------------------------------- /components/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thewebforge/astro-code-blocks/HEAD/components/index.ts -------------------------------------------------------------------------------- /env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thewebforge/astro-code-blocks/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thewebforge/astro-code-blocks/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thewebforge/astro-code-blocks/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/utils/color-contrast.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thewebforge/astro-code-blocks/HEAD/src/utils/color-contrast.ts -------------------------------------------------------------------------------- /src/utils/copy-button.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thewebforge/astro-code-blocks/HEAD/src/utils/copy-button.ts -------------------------------------------------------------------------------- /src/utils/html-entities.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thewebforge/astro-code-blocks/HEAD/src/utils/html-entities.ts -------------------------------------------------------------------------------- /src/utils/makeComponentNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thewebforge/astro-code-blocks/HEAD/src/utils/makeComponentNode.ts -------------------------------------------------------------------------------- /src/utils/shiki-block.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thewebforge/astro-code-blocks/HEAD/src/utils/shiki-block.ts -------------------------------------------------------------------------------- /src/utils/shiki-line.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thewebforge/astro-code-blocks/HEAD/src/utils/shiki-line.ts -------------------------------------------------------------------------------- /src/utils/syntax-highlighting-theme.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thewebforge/astro-code-blocks/HEAD/src/utils/syntax-highlighting-theme.ts -------------------------------------------------------------------------------- /src/utils/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thewebforge/astro-code-blocks/HEAD/src/utils/types.ts -------------------------------------------------------------------------------- /src/utils/user-config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thewebforge/astro-code-blocks/HEAD/src/utils/user-config.ts -------------------------------------------------------------------------------- /src/virtual.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thewebforge/astro-code-blocks/HEAD/src/virtual.d.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thewebforge/astro-code-blocks/HEAD/tsconfig.json --------------------------------------------------------------------------------