Skip to content

README update#423

Merged
mikepenz merged 2 commits intodevelopfrom
feature/improve_readme
Jul 4, 2025
Merged

README update#423
mikepenz merged 2 commits intodevelopfrom
feature/improve_readme

Conversation

@mikepenz
Copy link
Owner

@mikepenz mikepenz commented Jul 4, 2025

Description

Update readme

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build configuration change
  • Other (please describe):

@mikepenz mikepenz requested a review from Copilot July 4, 2025 10:29
@mikepenz mikepenz added the other label Jul 4, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enriches the documentation by describing new async parsing defaults, lazy-loading support, and adds migration notes for version 0.36.0.

  • Introduces a note on default asynchronous parsing and optional immediate parsing in README
  • Documents lazy-loading large markdown via LazyMarkdownSuccess
  • Adds Migration guide entries for Version 0.36.0

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
README.md Expanded usage examples: async vs. immediate parsing, lazy loading section, updated list handlers
MIGRATION.md Added “Version 0.36.0” upgrade notes covering dependencies, breaking changes, and behavior changes
Comments suppressed due to low confidence (3)

README.md:254

  • Several lambda parameters (type, index, listNumber, depth) are unused and may trigger warnings. Replace unused names with underscores (e.g., { _, bullet, _, _, _ -> }) to make it clear they are intentionally ignored.
CompositionLocalProvider(LocalBulletListHandler provides { type, bullet, index, listNumber, depth -> "$bullet " }) {

MIGRATION.md:3

  • [nitpick] If there was a 0.35.0 release, consider including its notes or adding a comment that it was skipped to maintain a clear, sequential upgrade history.
#### Version 0.36.0

MIGRATION.md:6

  • [nitpick] This list mixes verb tenses (imperative vs. past). For consistency, consider matching the tense of other items (e.g., “Removed all deprecated functions and fields”).
- **Breaking Change**: Remove all deprecated functions and fields

Comment on lines +137 to +140
val markdownState = rememberMarkdownState(markdown)

// Force immediate parsing (not recommended)
val markdownState = rememberMarkdownState(markdown, immediate = true)
Copy link

Copilot AI Jul 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The snippet redeclares markdownState in the same code block, which would cause a redeclaration error if copied verbatim. Consider splitting it into separate code fences or using distinct variable names to avoid shadowing.

Suggested change
val markdownState = rememberMarkdownState(markdown)
// Force immediate parsing (not recommended)
val markdownState = rememberMarkdownState(markdown, immediate = true)
val markdownStateAsync = rememberMarkdownState(markdown)
// Force immediate parsing (not recommended)
val markdownStateImmediate = rememberMarkdownState(markdown, immediate = true)

Copilot uses AI. Check for mistakes.
Comment on lines +254 to +259
CompositionLocalProvider(LocalBulletListHandler provides { type, bullet, index, listNumber, depth -> "$bullet " }) {
Markdown(content)
}

// Replace the ordered list symbol with `A.)` instead.
CompositionLocalProvider(LocalOrderedListHandler provides { "A.) " }) {
CompositionLocalProvider(LocalOrderedListHandler provides { type, bullet, index, listNumber, depth -> "A.) " }) {
Copy link

Copilot AI Jul 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused lambda parameters (type, index, listNumber, depth) can be replaced with _ to avoid noise and clarify that only bullet is used.

Copilot uses AI. Check for mistakes.
@mikepenz mikepenz merged commit a9dac51 into develop Jul 4, 2025
3 checks passed
@mikepenz mikepenz deleted the feature/improve_readme branch July 4, 2025 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant