FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Refactor HtmlRenderer and RendererContext by ani28-bit · Pull Request #453 · commonmark/commonmark-java · GitHub

Repository navigation

Refactor HtmlRenderer and RendererContext - #453

Closed
ani28-bit wants to merge 3 commits into
commonmark:mainfrom
ani28-bit:refactor-html-renderer
Closed

ani28-bit wants to merge 3 commits into
commonmark:mainfrom
ani28-bit:refactor-html-renderer

Conversation

Copy link
Copy Markdown

Summary

This PR refactors HtmlRenderer and RendererContext to improve readability, maintainability, and separation of responsibilities without changing functionality.

Changes

  • Extracted and staticized node renderer creation in HtmlRenderer.
  • Extracted initialization logic from RendererContext.
  • Improved the Single Responsibility Principle (SRP) in RendererContext.

Verification

  • All existing tests pass successfully with mvn test.
  • No external behavior or API changes were introduced.

robinst commented Oct 10, 2026

Copy link
Copy Markdown
Collaborator

Thanks. I like some of these changes but don't think others are an improvement at all; closing this.

robinst closed this Oct 10, 2026
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL