feat: Highlight links in Markdown

Closes #1962
This commit is contained in:
Ushie 2024-07-03 01:26:05 +03:00
parent 71b5f539c1
commit fa13d4a538
No known key found for this signature in database
GPG key ID: B3AAD18842E34632
2 changed files with 3 additions and 2 deletions

View file

@ -18,7 +18,8 @@ fun Markdown(
colors = markdownColor(
text = MaterialTheme.colorScheme.onSurfaceVariant,
codeBackground = MaterialTheme.colorScheme.secondaryContainer,
codeText = MaterialTheme.colorScheme.onSecondaryContainer
codeText = MaterialTheme.colorScheme.onSecondaryContainer,
linkText = MaterialTheme.colorScheme.primary
),
typography = markdownTypography(
h1 = MaterialTheme.typography.headlineSmall.copy(fontWeight = FontWeight.Bold),

View file

@ -20,7 +20,7 @@ koin-version = "3.5.3"
koin-version-compose = "3.5.3"
reimagined-navigation = "1.5.0"
ktor = "2.3.9"
markdown-renderer = "0.13.0"
markdown-renderer = "0.22.0"
fading-edges = "1.0.4"
android-gradle-plugin = "8.3.0"
kotlin-gradle-plugin = "1.9.22"