Package-level declarations
Functions
Link copied to clipboard
fun Markdown(content: String, colors: MarkdownColors = markdownColor(), typography: MarkdownTypography = markdownTypography(), modifier: Modifier = Modifier.fillMaxSize(), padding: MarkdownPadding = markdownPadding(), dimens: MarkdownDimens = markdownDimens(), flavour: MarkdownFlavourDescriptor = GFMFlavourDescriptor(), imageTransformer: ImageTransformer = NoOpImageTransformerImpl(), annotator: MarkdownAnnotator = markdownAnnotator(), extendedSpans: MarkdownExtendedSpans = markdownExtendedSpans(), components: MarkdownComponents = markdownComponents())
Link copied to clipboard
fun markdownColor(text: Color = MaterialTheme.colorScheme.onBackground, codeText: Color = MaterialTheme.colorScheme.onBackground, inlineCodeText: Color = codeText, linkText: Color = text, codeBackground: Color = MaterialTheme.colorScheme.onBackground.copy(alpha = 0.1f), inlineCodeBackground: Color = codeBackground, dividerColor: Color = MaterialTheme.colorScheme.outlineVariant): MarkdownColors
Link copied to clipboard
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, code: TextStyle = MaterialTheme.typography.bodyMedium.copy(fontFamily = FontFamily.Monospace), inlineCode: TextStyle = text.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, link: TextStyle = MaterialTheme.typography.bodyLarge.copy(
fontWeight = FontWeight.Bold,
textDecoration = TextDecoration.Underline
)): MarkdownTypography