Skip to content

feat: add text highlighting support#118

Merged
developer0hye merged 1 commit into
mainfrom
feat/text-highlight
Mar 6, 2026
Merged

feat: add text highlighting support#118
developer0hye merged 1 commit into
mainfrom
feat/text-highlight

Conversation

@developer0hye

Copy link
Copy Markdown
Owner

Summary

  • Add highlight: Option<Color> field to TextStyle IR
  • Parse 16 OOXML named highlight colors (yellow, green, cyan, etc.) from RunProperty.highlight
  • Render as #highlight(fill: rgb(...))[...] in Typst output
  • Merge highlight in merge_text_style()

Test plan

  • Unit test for resolve_highlight_color with all 16 named colors + "none"
  • Integration test: build DOCX with highlighted run, verify parsed highlight color
  • Unit tests for Typst output: highlight alone and combined with bold
  • Full test suite passes (no regressions)

🤖 Generated with Claude Code

Add highlight: Option<Color> to TextStyle IR. Parse OOXML named highlight
colors (16 standard colors) from docx-rs RunProperty.highlight via serde.
Render as #highlight(fill: rgb(...))[...] in Typst output. Merge highlight
in merge_text_style().

Signed-off-by: Yonghye Kwon <developer.0hye@gmail.com>
@developer0hye
developer0hye merged commit b75e2c5 into main Mar 6, 2026
26 of 27 checks passed
@developer0hye
developer0hye deleted the feat/text-highlight branch March 6, 2026 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant