Codeblock
EmDash 코드 블록용 Shiki 구문 강조입니다. 서버에서 렌더링하며 복사 버튼이 있습니다.
플러그인
Codeblock
EmDash 코드 블록용 Shiki 구문 강조입니다. 서버에서 렌더링하며 복사 버튼이 있습니다.
EmDash 코드 블록용 Shiki 구문 강조입니다. 서버에서 렌더링하며 복사 버튼이 있습니다.
설치
npm에서 패키지를 설치합니다.
npm install @plugdash/codeblock
Astro 설정에 플러그인을 등록합니다.
// astro.config.mjs
import { defineConfig } from "astro/config";
import emdash from "emdash/astro";
import { codeblockPlugin } from "@plugdash/codeblock";
export default defineConfig({
integrations: [
emdash({
plugins: [codeblockPlugin({ theme: "github-dark", lineNumbers: true })], // native - must be in plugins, not sandboxed
}),
],
});
세부 정보
- 최신 버전: 0.4.0
- 라이선스: MIT
- 게시자: abhinav061
- 요구 사항: EmDash
>=0.13.0 - 소스 저장소: https://github.com/plugdash/plugdash
- npm 패키지: @plugdash/codeblock