Package-level declarations
Contains all material3-related Markdown Composables.
Functions
Link copied to clipboard
fun m3BlockQuoteStyle(background: Color = MaterialTheme.colorScheme.surfaceVariant, shape: Shape = MaterialTheme.shapes.medium, barWidth: Dp = 4.dp, barColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, barShape: Shape = RectangleShape, innerPadding: PaddingValues = PaddingValues(8.dp)): BlockQuoteStyle
Constructs a BlockQuoteStyle using recommended defaults for your Material 3 theme.
Link copied to clipboard
fun m3CodeBlockStyle(background: Color = MaterialTheme.colorScheme.surfaceVariant, shape: Shape = MaterialTheme.shapes.medium, innerPadding: PaddingValues = PaddingValues(8.dp)): CodeBlockStyle
Constructs a CodeBlockStyle using recommended defaults for your Material 3 theme.
Link copied to clipboard
Constructs a TableStyle using recommended defaults for your Material 3 theme.
Link copied to clipboard
Constructs a TextStyleModifiers using recommended defaults from your Material 3 theme.
Link copied to clipboard
fun m3TextStyles(textColor: Color = LocalContentColor.current, textStyle: TextStyle = MaterialTheme.typography.bodyLarge.copy(color = textColor), headline1: TextStyle = MaterialTheme.typography.displaySmall.copy(color = textColor), headline2: TextStyle = MaterialTheme.typography.headlineLarge.copy(color = textColor), headline3: TextStyle = MaterialTheme.typography.headlineMedium.copy(color = textColor), headline4: TextStyle = MaterialTheme.typography.headlineSmall.copy(color = textColor), headline5: TextStyle = MaterialTheme.typography.titleLarge.copy(color = textColor), headline6: TextStyle = MaterialTheme.typography.titleMedium.copy(color = textColor)): TextStyles
Constructs a TextStyles using recommended defaults from your Material 3 theme.
Link copied to clipboard
fun MarkdownDocument(markdown: String, modifier: Modifier = Modifier, textStyles: TextStyles = m3TextStyles(), textStyleModifiers: TextStyleModifiers = m3TextStyleModifiers(), blockQuoteStyle: BlockQuoteStyle = m3BlockQuoteStyle(), codeBlockStyle: CodeBlockStyle = m3CodeBlockStyle(), ruleStyle: RuleStyle = m3RuleStyle(), tableStyle: TableStyle = m3TableStyle(), sectionSpacing: Dp = textStyles.textStyle.fontSize.toDp(), onLinkClick: (LinkAnnotation) -> Unit? = null)
Displays a Markdown document with Material 3 styling.