-
Notifications
You must be signed in to change notification settings - Fork 1
feat(og): MDX 본문에서 description 자동 추출 #544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
+100
−17
Conversation
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
9b9ec24 to
ff099bd
Compare
ff099bd to
cb272f2
Compare
cb272f2 to
15b672a
Compare
15b672a to
ee2cb43
Compare
ee2cb43 to
d702554
Compare
frontmatter에 description이 없는 경우 MDX 본문에서 자동 추출합니다. 추출 규칙: - Frontmatter, import 문 제거 - 첫 번째 h1 heading (# title) 제거 (페이지 제목) - JSX/HTML 태그 제거 - 나머지 heading (##, ### 등)은 포함 - 첫 번째 의미있는 텍스트를 150자 이내로 추출 Fixes #540 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
모든 heading(#, ##, ### 등)을 description에서 제외하여 더 자연스러운 문장이 되도록 변경합니다. 변경 전: 첫 번째 h1만 제거, 나머지 heading 텍스트는 유지 변경 후: 모든 heading을 완전히 제거 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
09a9e39 to
7ec9a68
Compare
keIIy-kim
approved these changes
Jan 26, 2026
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
src/lib/extract-description.ts: MDX 본문에서 description 추출 유틸리티 추가src/app/[lang]/[[...mdxPath]]/page.tsx: frontmatter에 description이 없으면 본문에서 자동 추출src/pages/api/og.tsx: 하드코딩된 글자수 truncation 제거, CSS line-clamp로 최대 3줄 표시Description 추출 규칙
---사이) 제거#,##,###등) 제거<Callout>,<figure>등) 제거) 제거[text](url)→text)-,*,1.등) 제거OG 이미지 변경사항
-webkit-line-clamp: 3으로 최대 3줄까지 표시하도록 변경height: 240→maxHeight: 240으로 변경예시
입력 (MDX)
출력 (Description)
Test plan
/ko/overview페이지의og:description메타 태그 확인/ko/administrator-manual/.../access-control페이지 확인Fixes #540
🤖 Generated with Claude Code