Skip to content

Commit

Permalink
Update dependency com.mikepenz:multiplatform-markdown-renderer-m3 to …
Browse files Browse the repository at this point in the history
…v0.31.0 (#1758)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[com.mikepenz:multiplatform-markdown-renderer-m3](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer)
| `0.26.0` -> `0.31.0` |
[![age](https://developer.mend.io/api/mc/badges/age/maven/com.mikepenz:multiplatform-markdown-renderer-m3/0.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.mikepenz:multiplatform-markdown-renderer-m3/0.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.mikepenz:multiplatform-markdown-renderer-m3/0.26.0/0.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.mikepenz:multiplatform-markdown-renderer-m3/0.26.0/0.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>mikepenz/multiplatform-markdown-renderer
(com.mikepenz:multiplatform-markdown-renderer-m3)</summary>

###
[`v0.31.0`](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/releases/tag/v0.31.0)

#### 🚀 Features

-   Hover icon on linked text
- PR:
[#&#8203;288](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/288)
- Expose table row and header to offer more configuration flexibility on
tables
- PR:
[#&#8203;290](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/290)
- Refactor to use `withLink` introduced in Compose 1.7 for links in the
annotated string
- PR:
[#&#8203;294](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/294)
-   Introduce support for complex blockquotes
- PR:
[#&#8203;309](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/309)
-   Improve accessibility for MarkdownHeader.
- PR:
[#&#8203;318](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/318)
-   Update dependencies
- PR:
[#&#8203;320](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/320)
-   Introduce support for task list items
- PR:
[#&#8203;317](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/317)

#### 🐛 Fixes

-   Add more configuration options for list paddings
- PR:
[#&#8203;281](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/281)
-   Fix inline link might navigate wrong
- PR:
[#&#8203;292](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/292)
-   Fix import not failing in local build
- PR:
[#&#8203;295](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/295)
-   Adjust how HARD_LINE_BREAK is interpreted
- PR:
[#&#8203;305](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/305)
-   Better handle BR and EOL occurrences
- PR:
[#&#8203;307](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/307)
-   Fix AUTOLINK in LINK causing issues
- PR:
[#&#8203;313](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/313)

#### 🧪 Tests

-   Introduce new snapshot tests
- PR:
[#&#8203;310](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/310)

#### 💬 Other

-   Update dependencies
- PR:
[#&#8203;282](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/282)
-   Update sample app icon
- PR:
[#&#8203;291](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/291)
-   Include convention plugin from version-catalog
- PR:
[#&#8203;293](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/293)
-   Enhance backwards compatiblity
- PR:
[#&#8203;306](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/306)
-   Update to Coil 3.1.0
- PR:
[#&#8203;308](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/308)
-   Retrieve `markdownComponents` via `LocalMarkdownComponents`
- PR:
[#&#8203;312](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/312)
-   Include Binary Compatibility Validator
- PR:
[#&#8203;314](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/314)
-   Setup m3 snapshot tests alongside m2 tests
- PR:
[#&#8203;321](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/321)

#### Contributors:

- [@&#8203;mikepenz](https://redirect.github.com/mikepenz),
[@&#8203;Saif-Alhaider](https://redirect.github.com/Saif-Alhaider),
[@&#8203;keta1](https://redirect.github.com/keta1),
[@&#8203;johnjohndoe](https://redirect.github.com/johnjohndoe)

###
[`v0.30.0`](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/releases/tag/v0.30.0)

> \[!IMPORTANT]\
> This release starts to use JVM 17 as target

##### 🐛 Fixes

-   Fix spacings for nested lists | Simplify logic
- PR:
[#&#8203;264](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/264)
-   Fix publishing
- PR:
[#&#8203;265](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/265)

##### 💬 Other

-   Rework project to use convention plugin
- PR:
[#&#8203;263](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/263)
-   Modify build to use published version catalog and convention plugin
- PR:
[#&#8203;266](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/266)

###
[`v0.29.0`](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/releases/tag/v0.29.0)

> \[!NOTE]\
> This release requires at least Kotlin 2.1.x or higher
>
See[https://github.com/mikepenz/multiplatform-markdown-renderer/issues/278#issuecomment-2607190446](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/278#issuecomment-2607190446)46

#### 💬 Other

-   Upgrade to Kotlin 2.x | Compose Multiplatform 1.7.3
- PR:
[#&#8203;259](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/259)
-   Add Table to sample
- PR:
[#&#8203;260](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/260)

###
[`v0.28.0`](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/releases/tag/v0.28.0)

#### 🚀 Features

- Update to compose multiplatform 1.7.1 | Coil 3.0.3 | highlights 1.0.0
- PR:
[#&#8203;236](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/236)
-   Upgrade Gradle 8.11.1 | Coil 3.0.4
- PR:
[#&#8203;239](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/239)
- Introduce new API to build annotated markdown strings to be used in
standard `Text` composables
- PR:
[#&#8203;253](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/253)
-   Replace API to disable animation for `MarkdownText`
- PR:
[#&#8203;254](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/254)
-   Add support for simple tables
- PR:
[#&#8203;257](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/257)

#### 🐛 Fixes

-   Revert dependencies due to IR issues
- PR:
[#&#8203;255](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/255)

#### 💬 Other

-   Adjust visibility of some helper methods
- PR:
[#&#8203;235](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/235)
-   Add Dependabot for GitHub Actions
- PR:
[#&#8203;247](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/247)
-   Bump mikepenz/action-junit-report from 4 to 5
- PR:
[#&#8203;250](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/250)
-   Bump gradle/actions from 3 to 4
- PR:
[#&#8203;248](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/248)
-   Bump actions/configure-pages from 4 to 5
- PR:
[#&#8203;249](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/249)
-   Upgrade to Dokka 2 | Coroutines 1.10.1 | Ktor 3.0.3 ...
- PR:
[#&#8203;251](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/251)
-   Include dependencies in changelog
- PR:
[#&#8203;252](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/252)

###
[`v0.27.0`](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/releases/tag/v0.27.0)

#### 🚀 Features

-   Introduce syntax highlighting support
- PR:
[#&#8203;206](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/206)
-   Upgrade Dependencies | Compose 1.7.0
- PR:
[#&#8203;207](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/207)
- Upgrade dependencies | Compose 1.7.1 / 1.7.0-beta02 | Highlights 0.9.2
- PR:
[#&#8203;209](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/209)
-   Make links in text stylable via the MarkdownTypography class
- PR:
[#&#8203;217](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/217)
-   Making use of EntityConverter to unescape text of leaf nodes
- PR:
[#&#8203;213](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/213)
-   Upgrade to Compose-MP 1.7.0-rc01
- PR:
[#&#8203;220](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/220)
- Add new ability to configure `PlaceholderConfig` to disable animation
via the `ImageTransformer`
- PR:
[#&#8203;227](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/227)
- Upgrade Compose-jb to 1.7.0 | Kotli 2.0.21 | Coil 3.0.0-rc02 | Ktor
3.0.1
- PR:
[#&#8203;228](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/228)

#### 🐛 Fixes

-   Fix CI setup for `-code` module
- PR:
[#&#8203;210](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/210)
-   Fix TextStyle not applied to code in annotated strings
- PR:
[#&#8203;219](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/219)
-   fix getUnescapedText error
- PR:
[#&#8203;222](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/222)

#### 💬 Other

-   Add example of custom component
- PR:
[#&#8203;218](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/218)
-   Update sample app minSDK
- PR:
[#&#8203;226](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/226)
-   \[CI] New maven central publishing portal
- PR:
[#&#8203;230](https://redirect.github.com/mikepenz/multiplatform-markdown-renderer/issues/230)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/ZacSweers/CatchUp).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xNDIuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Zac Sweers <[email protected]>
  • Loading branch information
renovate[bot] and ZacSweers authored Feb 22, 2025
1 parent 3d7914d commit c3a9828
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ import androidx.compose.ui.input.nestedscroll.nestedScroll
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.platform.LocalUriHandler
import androidx.compose.ui.text.SpanStyle
import androidx.compose.ui.text.TextLinkStyles
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontStyle
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextDecoration
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.TextUnit
Expand Down Expand Up @@ -231,9 +233,11 @@ constructor(
)
}
}

OpenUrl -> {
scope.launch { linkManager.openUrl(detail.linkUrl!!) }
}

is ToggleCollapse -> {
val commentId = event.commentId
if (commentId in collapsedItems) {
Expand All @@ -242,6 +246,7 @@ constructor(
collapsedItems[commentId] = Unit
}
}

Share -> {
linkManager.shareUrl(detail.shareUrl!!, detail.title)
}
Expand Down Expand Up @@ -304,6 +309,7 @@ private fun CommentsList(state: ServiceDetailScreen.State, modifier: Modifier =
}
}
}

0 -> {
item(key = "empty", contentType = "empty") {
Box(
Expand All @@ -314,6 +320,7 @@ private fun CommentsList(state: ServiceDetailScreen.State, modifier: Modifier =
}
}
}

else -> {
items(
count = numComments,
Expand Down Expand Up @@ -578,6 +585,7 @@ fun catchupMarkdownTypography(
h5: TextStyle = MaterialTheme.typography.titleLarge.copy(fontSize = seedSize * 1f),
h6: TextStyle = MaterialTheme.typography.titleLarge.copy(fontSize = seedSize * 0.85f),
text: TextStyle = MaterialTheme.typography.bodySmall,
inlineCode: TextStyle = text.copy(fontFamily = FontFamily.Monospace),
code: TextStyle =
MaterialTheme.typography.bodySmall.copy(
fontFamily = FontFamily.Monospace,
Expand All @@ -591,6 +599,12 @@ fun catchupMarkdownTypography(
ordered: TextStyle = MaterialTheme.typography.bodySmall.copy(fontSize = seedSize),
bullet: TextStyle = MaterialTheme.typography.bodySmall.copy(fontSize = seedSize),
list: TextStyle = MaterialTheme.typography.bodySmall.copy(fontSize = seedSize),
link: TextStyle =
MaterialTheme.typography.bodyLarge.copy(
fontWeight = FontWeight.Bold,
textDecoration = TextDecoration.Underline,
),
textLink: TextLinkStyles = TextLinkStyles(style = link.toSpanStyle()),
): MarkdownTypography =
DefaultMarkdownTypography(
h1 = h1,
Expand All @@ -606,4 +620,7 @@ fun catchupMarkdownTypography(
ordered = ordered,
bullet = bullet,
list = list,
inlineCode = inlineCode,
link = link,
textLink = textLink,
)
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ksp = "2.1.10-1.0.30"
ktfmt = "0.54"
leakcanary = "3.0-alpha-8"
lifecycle = "2.9.0-alpha10"
markdown = "0.26.0"
markdown = "0.31.0"
moshi = "1.15.2"
moshix = "0.29.0"
okhttp = "5.0.0-alpha.14"
Expand Down

0 comments on commit c3a9828

Please sign in to comment.