Skip to content

Commit

Permalink
release 1.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
cinkhangin committed Sep 4, 2024
1 parent a4be6c7 commit d0bb2e9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion glow-compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ afterEvaluate {
from(components["release"])
groupId = "com.naulian"
artifactId = "glow-compose"
version = "1.6.4"
version = "1.6.5"
}
}
}
Expand Down
25 changes: 15 additions & 10 deletions glow-compose/src/main/java/com/naulian/glow_compose/mdx/Mdx.kt
Original file line number Diff line number Diff line change
Expand Up @@ -195,18 +195,23 @@ fun mdxComponents(
node.children.isEmpty() && node.literal.isBlank() -> {}
else -> {
val paragraphContent = buildContentPair(node)
ClickableText(
text = paragraphContent.annotatedString,
style = style,
) { offset ->
paragraphContent.annotatedString.getStringAnnotations(
start = offset,
end = offset
).firstOrNull()?.let {
paragraphContent.linkMap[it.tag]?.let { url ->
onClickLink?.invoke(url)
onClickLink?.let { onClick ->
ClickableText(
text = paragraphContent.annotatedString,
style = style,
) { offset ->
paragraphContent.annotatedString.getStringAnnotations(
start = offset,
end = offset
).firstOrNull()?.let {
paragraphContent.linkMap[it.tag]?.let(onClick)
}
}
} ?: run {
Text(
text = paragraphContent.annotatedString,
style = style
)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion glow-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ afterEvaluate {
from(components["release"])
groupId = "com.naulian"
artifactId = "glow-core"
version = "1.6.4"
version = "1.6.5"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion glow/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ afterEvaluate {
from(components["release"])
groupId = "com.naulian"
artifactId = "glow"
version = "1.6.4"
version = "1.6.5"
}
}
}
Expand Down

0 comments on commit d0bb2e9

Please sign in to comment.