feat(chat): render LaTeX formulas natively (#939)
* feat(chat): render LaTeX formulas Support native inline and display math with accessible Compose rendering. * perf(chat): reuse LaTeX parsing state Share one measurer per message and skip redundant math splitting.
This commit is contained in:
1 parent
caed4db316
commit
bb4ca6bfa9
4 files changed
+311
-85
No files matched your search
@@ -29,6 +29,7 @@ coil = "2.7.0"
|
||||
room = "2.7.1"
|
||||
sqlcipher = "4.17.0"
|
||||
datastore = "1.1.2"
|
||||
latex = "1.5.3"
|
||||
|
||||
[libraries]
|
||||
androidx-core-ktx = { module = "androidx.core:core-ktx", version.ref = "androidxCore" }
|
||||
@@ -81,6 +82,11 @@ androidx-room-compiler = { module = "androidx.room:room-compiler", version.ref =
|
||||
androidx-room-ktx = { module = "androidx.room:room-ktx", version.ref = "room" }
|
||||
sqlcipher = { module = "net.zetetic:sqlcipher-android", version.ref = "sqlcipher" }
|
||||
|
||||
# Native Compose LaTeX rendering
|
||||
latex-base = { module = "io.github.huarangmeng:latex-base", version.ref = "latex" }
|
||||
latex-parser = { module = "io.github.huarangmeng:latex-parser", version.ref = "latex" }
|
||||
latex-renderer = { module = "io.github.huarangmeng:latex-renderer", version.ref = "latex" }
|
||||
|
||||
# Image loading
|
||||
coil-compose = { module = "io.coil-kt:coil-compose", version.ref = "coil" }
|
||||
coil-gif = { module = "io.coil-kt:coil-gif", version.ref = "coil" }
|
||||
|
||||
Reference in new issue
Block a user