From 8097e6c52d3783e5bb281eb5ffc543701bd3a39a Mon Sep 17 00:00:00 2001 From: davotoula Date: Tue, 9 Jun 2026 17:08:19 +0200 Subject: [PATCH] fix(math): upgrade LaTeX renderer to maintained rikkahub jlatexmath fork --- amethyst/build.gradle.kts | 2 ++ gradle/libs.versions.toml | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/amethyst/build.gradle.kts b/amethyst/build.gradle.kts index 6fe554fccf..22cd9f66ac 100644 --- a/amethyst/build.gradle.kts +++ b/amethyst/build.gradle.kts @@ -414,6 +414,8 @@ dependencies { // LaTeX math rendering ($...$ and $$...$$ inline equations) implementation(libs.jlatexmath.android) + implementation(libs.jlatexmath.font.greek) + implementation(libs.jlatexmath.font.cyrillic) // Language picker and Theme chooser implementation(libs.androidx.appcompat) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 424d1294d6..bc655df85e 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -43,7 +43,7 @@ genaiImageDescription = "1.0.0-beta1" languageId = "17.0.6" lifecycleRuntimeKtx = "2.10.0" lightcompressor-enhanced = "2.2.1" -jlatexmath = "0.2.0" +jlatexmath = "1.4" markdown = "f92ef49c9d" material3 = "1.9.0" media3 = "1.10.1" @@ -176,7 +176,9 @@ kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-c kotlinx-coroutines-swing = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-swing", version.ref = "kotlinxCoroutinesCore" } kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinxSerialization" } kotlinx-serialization-cbor = { module = "org.jetbrains.kotlinx:kotlinx-serialization-cbor", version.ref = "kotlinxSerialization" } -jlatexmath-android = { group = "ru.noties", name = "jlatexmath-android", version.ref = "jlatexmath" } +jlatexmath-android = { module = "com.github.rikkahub.jlatexmath-android:jlatexmath", version.ref = "jlatexmath" } +jlatexmath-font-greek = { module = "com.github.rikkahub.jlatexmath-android:jlatexmath-font-greek", version.ref = "jlatexmath" } +jlatexmath-font-cyrillic = { module = "com.github.rikkahub.jlatexmath-android:jlatexmath-font-cyrillic", version.ref = "jlatexmath" } markdown-commonmark = { group = "com.github.vitorpamplona.compose-richtext", name = "richtext-commonmark", version.ref = "markdown" } markdown-ui = { group = "com.github.vitorpamplona.compose-richtext", name = "richtext-ui", version.ref = "markdown" } markdown-ui-material3 = { group = "com.github.vitorpamplona.compose-richtext", name = "richtext-ui-material3", version.ref = "markdown" }