feat: layout 모드 통합 — HtmlOptions.layout + 레이아웃 테스트#173
Merged
Conversation
- HtmlOptions에 layout: bool 필드 추가
- HwpDocument::to_html()에서 layout 옵션 전달
- napi ToHtmlOptions에 layout: Option<bool> 추가
- convertToHtml(), hwpxToHtml()에서 layout 옵션 전달
- 레이아웃 모드 통합 테스트 2개 (HWP hpa/hls 검증, HWPX hpa 검증)
사용법:
// Node.js
const html = toHtml(data, { layout: true });
// Rust
let opts = HtmlOptions { layout: true, ..Default::default() };
document.to_html(&opts);
Co-Authored-By: Claude Opus 4.6 (1M context) <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
HtmlOptions.layout: bool— pixel-accurate 레이아웃 모드 스위치ToHtmlOptions.layout: Option<bool>— Node.js에서{ layout: true }사용 가능layout: true로 동일한 레이아웃 HTML 생성 가능사용법
Phase 0~7 완료 요약
Test plan
cargo test— 전체 workspace 0 FAILEDtest_layout_mode_produces_hpa— HWP layout 출력 검증test_layout_mode_hwpx— HWPX layout 출력 검증🤖 Generated with Claude Code