Suggestion: Split MathRenderer.kt into smaller mathematical-construct files
Category: Large functions/files
File: composeApp/src/commonMain/kotlin/com/oak/app/ui/markdown/math/MathRenderer.kt
This file is 675 lines and contains multiple private renderers (FractionRenderer, ScriptRenderer, RadicalRenderer, AccentRenderer, LargeOpRenderer, MatrixRenderer) alongside shared utility functions and data structures. The file is difficult to navigate and modify as a single unit.
Suggested action: Extract each renderer into its own file (e.g., FractionRenderer.kt, ScriptRenderer.kt, RadicalRenderer.kt, etc.) and move shared utilities to a MathRendererUtils.kt.
Suggestion: Split MathRenderer.kt into smaller mathematical-construct files
Category: Large functions/files
File:
composeApp/src/commonMain/kotlin/com/oak/app/ui/markdown/math/MathRenderer.ktThis file is 675 lines and contains multiple private renderers (FractionRenderer, ScriptRenderer, RadicalRenderer, AccentRenderer, LargeOpRenderer, MatrixRenderer) alongside shared utility functions and data structures. The file is difficult to navigate and modify as a single unit.
Suggested action: Extract each renderer into its own file (e.g., FractionRenderer.kt, ScriptRenderer.kt, RadicalRenderer.kt, etc.) and move shared utilities to a MathRendererUtils.kt.