Skip to content

refactor(markdown): Unified/Remark/Rehype 파이프라인 모듈화 및 플러그인 분리 - #88

Merged
CoBool merged 1 commit into
mainfrom
refactor/markdown-pipeline-modularization
Aug 16, 2026
Merged

refactor(markdown): Unified/Remark/Rehype 파이프라인 모듈화 및 플러그인 분리#88
CoBool merged 1 commit into
mainfrom
refactor/markdown-pipeline-modularization

Conversation

@CoBool

@CoBool CoBool commented Aug 16, 2026

Copy link
Copy Markdown
Owner
  • render.ts 단일 파일에 밀집되어 있던 10여 개의 AST 변환 로직을 plugins/ (math, tables, task-list, headings, toc, sanitize) 디렉터리로 단일 책임 원칙(SRP)에 맞춰 분리
  • Unified 파이프라인 팩토리 함수(createMarkdownProcessor) 및 SanitizedHtml 브랜딩 가드(toSanitizedHtml) 캡슐화
  • 분리된 커스텀 플러그인에 대한 단위 테스트(tests/markdown-plugins.test.ts) 추가
  • 전체 32개 테스트 파일 / 222개 테스트 및 린트/타입체크 100% 통과

- render.ts 내 AST 변환 로직을 plugins/ (math, tables, task-list, headings, toc, sanitize) 디렉터리로 단일 책임(SRP)에 맞춰 분리

- Unified 파이프라인 팩토리 함수(createMarkdownProcessor) 및 SanitizedHtml 브랜딩 가드 캡슐화

- 분리된 커스텀 플러그인에 대한 단위 테스트(tests/markdown-plugins.test.ts) 추가
@CoBool
CoBool merged commit e51c6c7 into main Aug 16, 2026
1 check passed
@CoBool
CoBool deleted the refactor/markdown-pipeline-modularization branch August 16, 2026 11:36
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