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.