MarkdownDefaults

object MarkdownDefaults

Contains the default values used by Markdown.

Functions

Link copied to clipboard
@Composable
fun markdownColors(textColor: Color = MaterialTheme.colors.onBackground, backgroundColor: Color = MaterialTheme.colors.onSurface, codeBackgroundColor: Color = MaterialTheme.colors.onBackground.copy(alpha = 0.1f), colorByType: (type: IElementType) -> Color?? = null): MarkdownColors

Creates a MarkdownColors that represents the default colors of the text, background and content used in a markdown component.

Link copied to clipboard
@Composable
fun markdownTypography(h1: TextStyle = MaterialTheme.typography.h1, h2: TextStyle = MaterialTheme.typography.h2, h3: TextStyle = MaterialTheme.typography.h3, h4: TextStyle = MaterialTheme.typography.h4, h5: TextStyle = MaterialTheme.typography.h5, h6: TextStyle = MaterialTheme.typography.h6, body1: TextStyle = MaterialTheme.typography.body1, body2: TextStyle = MaterialTheme.typography.body2): MarkdownTypography

Creates a MarkdownTypography that represents the default text scale used in a markdown component.