Skip to content

refactor: streamline markdown rendering by introducing RenderedSegment and MarkdownSegmentRenderer#240

Merged
hryhoriiK97 merged 1 commit intomainfrom
refactor/extract-segment-rendering-to-common
Apr 12, 2026
Merged

refactor: streamline markdown rendering by introducing RenderedSegment and MarkdownSegmentRenderer#240
hryhoriiK97 merged 1 commit intomainfrom
refactor/extract-segment-rendering-to-common

Conversation

@hryhoriiK97
Copy link
Copy Markdown
Collaborator

@hryhoriiK97 hryhoriiK97 commented Apr 12, 2026

What/Why?

Extracts the segment rendering logic (RenderSegment types and renderTextSegment) from EnrichedMarkdown.kt into a shared RenderedSegment.kt in the common module. This eliminates duplicated text-segment rendering code between EnrichedMarkdown and MeasurementStore, ensuring both consumers use the same MarkdownSegmentRenderer.render() path. Pure structural refactor with no behavioral changes.

Testing

PR Checklist

  • Code compiles and runs on iOS
  • Code compiles and runs on Android
  • Updated documentation/README if applicable
  • Ran example app to verify changes

@hryhoriiK97 hryhoriiK97 merged commit 87c0872 into main Apr 12, 2026
5 checks passed
@hryhoriiK97 hryhoriiK97 deleted the refactor/extract-segment-rendering-to-common branch April 12, 2026 15:24
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