Skip to content

Suggestion: Split MathRenderer.kt into smaller mathematical-construct files #92

Description

@adrielGGmotion

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    suggestionAI-generated code improvement suggestion

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions