Skip to content

Refactor HtmlRenderer and RendererContext - #453

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

Refactor HtmlRenderer and RendererContext#453
ani28-bit wants to merge 3 commits into
commonmark:mainfrom
ani28-bit:refactor-html-renderer

Conversation

@ani28-bit

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.

注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

标签

None yet

项目

None yet

Development

Successfully merging this pull request may close these issues.

1 participant