fix(confluence-mdx/mdx_to_storage): inline code span 내 HTML 특수문자를 이스케이프합니다#904
Merged
fix(confluence-mdx/mdx_to_storage): inline code span 내 HTML 특수문자를 이스케이프합니다#904
Conversation
1 task
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
\`<\`, \`>\`, \`&\` 등 HTML 특수문자가 포함된 코드 스니펫이 XHTML로 변환될 때 이스케이프되지 않아 XHTML 파싱 오류나 렌더링 깨짐이 발생하는 버그를 수정합니다. - bin/mdx_to_storage/inline.py: convert_inline, convert_heading_inline의 _restore_code에 html.escape() 적용 - bin/reverse_sync/mdx_to_xhtml_inline.py: _convert_code_spans에 html.escape() 적용 - tests/test_reverse_sync_mdx_to_xhtml_inline.py: HTML 특수문자 escape 테스트 추가 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
8050031 to
e99a9c9
Compare
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.
Description
`<`, `>`, `&` 등 HTML 특수문자가 포함된 코드 스니펫을 XHTML로 변환할 때
이스케이프되지 않아 XHTML 파싱 오류나 렌더링 깨짐이 발생하는 버그를 수정합니다.
변경 전: ```SELECT * FROM t WHERE x < 10``` → `
SELECT * FROM t WHERE x < 10` ❌변경 후: ```SELECT * FROM t WHERE x < 10``` → `
SELECT * FROM t WHERE x < 10` ✅변경 파일
reverse_sync 동일 버그
`reverse_sync/mdx_to_xhtml_inline.py`의 `_convert_code_spans`도 동일한 버그가 있으며 #910에서 수정됩니다.
Added/updated tests?
관련 PR
🤖 Generated with Claude Code