fix: text style used for links in Markdown (#88)

This commit is contained in:
akesi seli 2024-11-10 22:33:40 +01:00 committed by GitHub
parent 11a0ff15ca
commit 69728c6ebd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View File

@ -11,6 +11,8 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalUriHandler
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.TextDecoration
import com.livefast.eattrash.raccoonforlemmy.core.appearance.di.getThemeRepository
import com.livefast.eattrash.raccoonforlemmy.core.appearance.theme.Spacing
import com.livefast.eattrash.raccoonforlemmy.core.appearance.theme.readContentAlpha
@ -67,6 +69,11 @@ fun PostCardBody(
list = typography.bodyMedium,
ordered = typography.bodyMedium,
code = typography.bodyMedium.copy(fontFamily = FontFamily.Monospace),
link =
typography.bodyMedium.copy(
fontWeight = FontWeight.Bold,
textDecoration = TextDecoration.Underline,
),
),
colors =
markdownColor(

View File

@ -12,6 +12,7 @@ import androidx.compose.ui.platform.LocalUriHandler
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.TextDecoration
import com.livefast.eattrash.raccoonforlemmy.core.appearance.di.getThemeRepository
import com.livefast.eattrash.raccoonforlemmy.core.appearance.theme.Spacing
import com.livefast.eattrash.raccoonforlemmy.core.appearance.theme.readContentAlpha
@ -77,6 +78,11 @@ fun PostCardTitle(
list = typography.bodyMedium,
ordered = typography.bodyMedium,
code = typography.bodyMedium.copy(fontFamily = FontFamily.Monospace),
link =
typography.bodyMedium.copy(
fontWeight = FontWeight.Bold,
textDecoration = TextDecoration.Underline,
),
),
colors =
markdownColor(