Skip to content

feat: 댓글 인라인 마크다운 지원#269

Merged
sdk-kr merged 2 commits into
damoang:mainfrom
unstable-code:feat/comment-inline-markdown
Mar 6, 2026
Merged

feat: 댓글 인라인 마크다운 지원#269
sdk-kr merged 2 commits into
damoang:mainfrom
unstable-code:feat/comment-inline-markdown

Conversation

@unstable-code
Copy link
Copy Markdown
Collaborator

@unstable-code unstable-code commented Mar 6, 2026

Summary

image
  • 댓글에 간단한 인라인 마크다운 문법 지원: **bold**, *italic*, ~~strikethrough~~
  • <code>, <pre> 블록 내부는 변환하지 않음 (코드 블록 안전)
  • DOMPurify ALLOWED_TAGS에 strong, em, del 추가
  • 테스트 8건 추가 (전체 217건 통과)

변경 파일

  • content-transform.tstransformInlineMarkdown() 함수 추가
  • comment-content.ts — hook 등록 (priority 4.6)
  • comment-list.svelte — DOMPurify 허용 태그 추가
  • content-transform.test.ts — 인라인 마크다운 테스트 추가

Test plan

  • **볼드**볼드 렌더링 확인
  • *이탤릭*이탤릭 렌더링 확인
  • ~~취소선~~취소선 렌더링 확인
  • 코드 블록 내부 마크다운 미변환 확인
  • 기존 댓글 소급 적용 확인
  • vitest 217건 전체 통과

🤖 Generated with Claude Code

unstable-code and others added 2 commits March 6, 2026 19:34
댓글에 간단한 인라인 마크다운 문법을 지원합니다.
- **bold** → <strong>, *italic* → <em>, ~~strike~~ → <del>
- <code>, <pre> 블록 내부는 변환하지 않음
- DOMPurify ALLOWED_TAGS에 strong, em, del 추가
- 테스트 8건 추가

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@unstable-code unstable-code marked this pull request as ready for review March 6, 2026 10:48
@unstable-code unstable-code requested a review from sdk-kr March 6, 2026 10:48
Copy link
Copy Markdown
Contributor

@sdk-kr sdk-kr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
감사합니다.

@sdk-kr sdk-kr merged commit 2843a82 into damoang:main Mar 6, 2026
8 of 12 checks passed
@unstable-code unstable-code deleted the feat/comment-inline-markdown branch March 6, 2026 12:12
sdk-kr pushed a commit that referenced this pull request Mar 7, 2026
## Summary
<img width="887" height="109" alt="image"
src="https://github.com/user-attachments/assets/6d3696ea-8a50-4962-bd1f-c1422d30a4e7"
/>

- 댓글에 간단한 인라인 마크다운 문법 지원: `**bold**`, `*italic*`, `~~strikethrough~~`
- `<code>`, `<pre>` 블록 내부는 변환하지 않음 (코드 블록 안전)
- DOMPurify ALLOWED_TAGS에 `strong`, `em`, `del` 추가
- 테스트 8건 추가 (전체 217건 통과)

## 변경 파일
- `content-transform.ts` — `transformInlineMarkdown()` 함수 추가
- `comment-content.ts` — hook 등록 (priority 4.6)
- `comment-list.svelte` — DOMPurify 허용 태그 추가
- `content-transform.test.ts` — 인라인 마크다운 테스트 추가

## Test plan
- [x] `**볼드**` → **볼드** 렌더링 확인
- [x] `*이탤릭*` → *이탤릭* 렌더링 확인
- [x] `~~취소선~~` → ~~취소선~~ 렌더링 확인
- [x] 코드 블록 내부 마크다운 미변환 확인
- [x] 기존 댓글 소급 적용 확인
- [x] vitest 217건 전체 통과

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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.

2 participants