Skip to content

refactor(render): extract the four largest renderers from BuiltinRenderers#39

Merged
DemchaAV merged 1 commit into
developfrom
refactor/split-builtin-renderers
Jul 1, 2026
Merged

refactor(render): extract the four largest renderers from BuiltinRenderers#39
DemchaAV merged 1 commit into
developfrom
refactor/split-builtin-renderers

Conversation

@DemchaAV

@DemchaAV DemchaAV commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Why

BuiltinRenderers.java had grown to ~750 lines — past the 500-line guideline — flagged by two senior reviews as carried debt. Hygiene before the next feature ([TOC] page numbers will touch TocRenderer).

What changed

ListRenderer, TableRenderer, FootnotesRenderer, TocRenderer move from nested classes to top-level classes in the same package. BuiltinRenderers keeps registerDefaults(...) and the smaller renderers (~440 lines). Zero behaviour delta — registration unchanged (same simple names now resolve to the top-level classes), no test modified. Orphaned imports pruned; CHANGELOG notes the FQN move for anyone referencing the nested names.

Verification

./mvnw clean verify javadoc:javadocBUILD SUCCESS, 166 tests, 0 failures — the entire suite passes unmodified, which is the zero-delta proof.

…erers

ListRenderer, TableRenderer, FootnotesRenderer and TocRenderer move from nested classes to top-level classes in the same package (io.github.demchaav.markdown.render); BuiltinRenderers keeps the registration and the smaller renderers and drops ~750 -> ~440 lines, back under the 500-line guideline. Zero behaviour delta: registration is unchanged (same simple names resolve to the new top-level classes) and the full suite is green unmodified (166 tests). Orphaned imports pruned; class Javadoc updated.
@DemchaAV DemchaAV force-pushed the refactor/split-builtin-renderers branch from ce1c6bc to f2f8f73 Compare July 1, 2026 22:38
@DemchaAV DemchaAV merged commit 00818b3 into develop Jul 1, 2026
4 checks passed
@DemchaAV DemchaAV deleted the refactor/split-builtin-renderers branch July 1, 2026 22:39
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