chore: update default markdown typography

This commit is contained in:
Diego Beraldin 2023-09-21 06:23:44 +02:00
parent 468727d1b2
commit ab623686b6

View File

@ -43,19 +43,19 @@ private class DefaultMarkdownTypography(
@Composable
fun markdownTypography(
h1: TextStyle = MaterialTheme.typography.displayLarge,
h2: TextStyle = MaterialTheme.typography.displayMedium,
h3: TextStyle = MaterialTheme.typography.displaySmall,
h4: TextStyle = MaterialTheme.typography.headlineMedium,
h5: TextStyle = MaterialTheme.typography.headlineSmall,
h6: TextStyle = MaterialTheme.typography.titleLarge,
text: TextStyle = MaterialTheme.typography.bodyLarge,
h1: TextStyle = MaterialTheme.typography.headlineLarge,
h2: TextStyle = MaterialTheme.typography.headlineMedium,
h3: TextStyle = MaterialTheme.typography.headlineSmall,
h4: TextStyle = MaterialTheme.typography.titleLarge,
h5: TextStyle = MaterialTheme.typography.titleMedium,
h6: TextStyle = MaterialTheme.typography.titleSmall,
text: TextStyle = MaterialTheme.typography.bodyMedium,
code: TextStyle = MaterialTheme.typography.bodyMedium.copy(fontFamily = FontFamily.Monospace),
quote: TextStyle = MaterialTheme.typography.bodyMedium.plus(SpanStyle(fontStyle = FontStyle.Italic)),
paragraph: TextStyle = MaterialTheme.typography.bodyLarge,
ordered: TextStyle = MaterialTheme.typography.bodyLarge,
bullet: TextStyle = MaterialTheme.typography.bodyLarge,
list: TextStyle = MaterialTheme.typography.bodyLarge,
paragraph: TextStyle = MaterialTheme.typography.bodyMedium,
ordered: TextStyle = MaterialTheme.typography.bodyMedium,
bullet: TextStyle = MaterialTheme.typography.bodyMedium,
list: TextStyle = MaterialTheme.typography.bodyMedium,
): MarkdownTypography = DefaultMarkdownTypography(
h1 = h1, h2 = h2, h3 = h3, h4 = h4, h5 = h5, h6 = h6,
text = text, quote = quote, code = code, paragraph = paragraph,