수정: 문서 오류 처리를 보강하고 섹션 파서를 단순화 - #12
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
omm | 53f56f2 | Commit Preview URL Branch Preview URL |
Sep 06 2026, 12:42 PM |
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.
한줄 요약
원본 문서 다운로드나 캐시 오류가 페이지 전체 실패로 이어지지 않게 하고, 문서 섹션 파서를 단순화해 코드 블록과 일반 이미지를 보존합니다.
배경
GitHub 응답 헤더를 받은 뒤 본문 연결이 끊기면 기존 오류 안내로 연결되지 않았습니다. 캐시 실패도 정상 원본 응답을 막았고 다운로드에 종료 시점이 없었습니다. 별도 섹션 파서는 코드 울타리의 종류와 길이를 구분하지 못했으며 이미지 문단은 뱃지 여부와 관계없이 제외했습니다.
무엇을 바꿨나
본문 읽기까지 5초 제한과 기존 오류 안내를 적용하고 캐시 실패를 처리합니다. Worker와 호환되는 manual redirect 처리로 리디렉션을 따르지 않습니다. 수제 섹션 파서를 이미 사용하는 marked 기반으로 56줄에서 24줄로 줄였습니다. 일반 이미지와 저장소 상대 이미지 주소, 섹션 안 참조 링크 정의를 보존합니다. 새 의존성은 없습니다.
어떻게 확인했나