Skip to content

dev -> main#592

Merged
mikepenz merged 8 commits into
mainfrom
develop
Jun 22, 2026
Merged

dev -> main#592
mikepenz merged 8 commits into
mainfrom
develop

Conversation

@mikepenz

Copy link
Copy Markdown
Owner

dev -> main

renovate-mike Bot and others added 8 commits June 21, 2026 22:12
Co-authored-by: renovate-mike[bot] <274037420+renovate-mike[bot]@users.noreply.github.com>
…ontainers-java-3-21

chore(deps): update mcr.microsoft.com/devcontainers/java:3-21 docker digest to 53e4659
fix(deps): update coil to v3.5.0
Adds a public top-level parseMarkdown(content, lookupLinks, flavour,
parser, referenceLinkHandler): State alongside parseMarkdownFlow. It
parses on the calling thread and returns the final immutable State
directly (State.Success or State.Error), without exposing any mutable
Flow/StateFlow surface. Useful to pre-parse content before the UI is
shown and pass the parsed state into the Markdown composable.

Reuses the existing Input / MarkdownStateImpl / parseBlocking path, so
it is purely additive. Adds commonTest coverage and documents the
function in the README.

Closes #587
…down

feat: add synchronous parseMarkdown returning a parsed State
Copilot AI review requested due to automatic review settings June 22, 2026 19:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 merges dev -> main changes that introduce a synchronous markdown parsing entry point, document its usage, add test coverage for it, and roll forward a few release/dependency/CI environment updates.

Changes:

  • Add new public top-level parseMarkdown(...) API that parses markdown synchronously and returns a final State (Success/Error).
  • Document synchronous parsing usage in the README and add commonTest coverage for success/link-lookup/error behavior.
  • Bump project version and update a dependency plus CI/devcontainer pinned revisions.

Reviewed changes

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

Show a summary per file
File Description
README.md Documents the new synchronous parsing API and warns about running it off the main thread for large docs.
multiplatform-markdown-renderer/src/commonTest/kotlin/com/mikepenz/markdown/model/ParseMarkdownTest.kt Adds tests covering success, empty input, reference-link lookup, and error-to-State.Error behavior.
multiplatform-markdown-renderer/src/commonMain/kotlin/com/mikepenz/markdown/model/MarkdownState.kt Introduces the new public parseMarkdown(...) synchronous API backed by existing parseBlocking() behavior.
multiplatform-markdown-renderer/api/multiplatform-markdown-renderer.klib.api Updates KLib API dump to include the new public function.
multiplatform-markdown-renderer/api/jvm/multiplatform-markdown-renderer.api Updates JVM API dump to include the new public function.
multiplatform-markdown-renderer/api/android/multiplatform-markdown-renderer.api Updates Android API dump to include the new public function.
gradle/libs.versions.toml Bumps Coil v3 catalog version.
gradle.properties Bumps library version name/code (0.42.0 → 0.43.0).
.github/workflows/static.yml Updates pinned gradle/actions/setup-gradle revision.
.github/workflows/gradle-dependency-submission.yml Updates pinned gradle/actions/setup-gradle revision.
.github/workflows/ci.yml Updates pinned gradle/actions/setup-gradle and wrapper-validation revisions.
.devcontainer/devcontainer.json Updates the pinned devcontainer image digest.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mikepenz mikepenz merged commit c2e39da into main Jun 22, 2026
7 checks passed
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.

3 participants