feat: 댓글 인라인 마크다운 지원#269
Merged
Merged
Conversation
댓글에 간단한 인라인 마크다운 문법을 지원합니다. - **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>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
**bold**,*italic*,~~strikethrough~~<code>,<pre>블록 내부는 변환하지 않음 (코드 블록 안전)strong,em,del추가변경 파일
content-transform.ts—transformInlineMarkdown()함수 추가comment-content.ts— hook 등록 (priority 4.6)comment-list.svelte— DOMPurify 허용 태그 추가content-transform.test.ts— 인라인 마크다운 테스트 추가Test plan
**볼드**→ 볼드 렌더링 확인*이탤릭*→ 이탤릭 렌더링 확인~~취소선~~→취소선렌더링 확인🤖 Generated with Claude Code