Lua M2 §4: extract set-pieces' pure geometry - #246
Conversation
Move the set-piece geometry from set-pieces.lua into press-util.lua beside the figure helpers: the cascade step (cascade_indent), the serpentine tail's sine offset + LaTeX size ramp (tail_ramp), and the web font-size ramp (tail_web_size), with their constants (CASCADE_STEP, TAIL_AMP, TAIL_SIZES, TAIL_WEB_SIZES). The filter loads the module by the same PANDOC_SCRIPT_FILE-relative package.path and keeps all AST-shaping. Unit-tested under pandoc lua beside the figure helpers. Behaviour identical: the set-pieces integration test passes unchanged (5), all filter integration + unit tests green (56), stylua/selene/syntax clean. docs/LUA-QUALITY-PLAN.md §4. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NMBFSnRjob6Cmz1p4cwyCQ
|
Warning Review limit reached
Next review available in: 27 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Moves set-pieces.lua's pure geometry (cascade step, the tail sine offset + LaTeX/web size ramps) into press-util.lua beside the figure helpers, unit-tested under pandoc lua. Same require mechanism; all AST-shaping stays. Behaviour identical — set-pieces integration test unchanged (5), full filter + unit suite green (52). docs/LUA-QUALITY-PLAN.md §4.
🤖 Generated with Claude Code
https://claude.ai/code/session_01NMBFSnRjob6Cmz1p4cwyCQ