Skip to content

feat: Add code block copy button#5

Open
BuffSo wants to merge 3 commits intokipid:mainfrom
BuffSo:code-copy-and-paste
Open

feat: Add code block copy button#5
BuffSo wants to merge 3 commits intokipid:mainfrom
BuffSo:code-copy-and-paste

Conversation

@BuffSo
Copy link

@BuffSo BuffSo commented Mar 12, 2026

Summary

  • 코드 블록(pre.line-numbers)에 Copy 버튼 추가
  • MutationObserver로 Prism.js 렌더링 완료 후 버튼 삽입
  • navigator.clipboard API 사용, 에러 핸들링 포함

Changes

  • docuK-2.3.css: Copy 버튼 스타일 추가
  • src/docuK-postProcess-2.3.ts: Copy 버튼 로직 추가

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant