Package-level declarations
Properties
Link copied to clipboard
Retrieve the current list depth from the MarkdownComponentModel
Functions
Link copied to clipboard
fun createImageInlineTextContent(placeholderState: PlaceholderConfig, transformer: ImageTransformer, imageState: MarkdownImageState): InlineTextContent
Link copied to clipboard
fun MarkdownBlockQuote(content: String, node: ASTNode, style: TextStyle = LocalMarkdownTypography.current.quote)
Link copied to clipboard
fun MarkdownCheckBox(content: String, node: ASTNode, style: TextStyle, checkedIndicator: @Composable (Boolean, Modifier) -> Unit = { checked, modifier ->
MarkdownText(
content = "[${if (checked) "x" else " "}] ",
modifier = modifier,
style = style.copy(fontFamily = FontFamily.Monospace)
)
})
Link copied to clipboard
fun MarkdownCodeBackground(color: Color, modifier: Modifier = Modifier, shape: Shape = RectangleShape, border: BorderStroke? = null, elevation: Dp = 0.dp, showHeader: Boolean = false, language: String? = null, code: String = "", content: @Composable () -> Unit)
Link copied to clipboard
fun MarkdownCodeBlock(content: String, node: ASTNode, style: TextStyle = LocalMarkdownTypography.current.code, block: @Composable (String, String?, TextStyle) -> Unit = { code, language, style -> MarkdownCode(code = code, language = language, style = style) })
Link copied to clipboard
fun MarkdownCodeFence(content: String, node: ASTNode, style: TextStyle = LocalMarkdownTypography.current.code, block: @Composable (String, String?, TextStyle) -> Unit = { code, language, style -> MarkdownCode(code = code, language = language, style = style) })
Link copied to clipboard
fun MarkdownDivider(modifier: Modifier = Modifier, color: Color = LocalMarkdownColors.current.dividerColor, thickness: Dp = LocalMarkdownDimens.current.dividerThickness)
Link copied to clipboard
fun MarkdownHeader(content: String, node: ASTNode, style: TextStyle, contentChildType: IElementType = MarkdownTokenTypes.ATX_CONTENT)
Link copied to clipboard
Link copied to clipboard
fun MarkdownParagraph(content: String, node: ASTNode, modifier: Modifier = Modifier, style: TextStyle = LocalMarkdownTypography.current.paragraph, annotatorSettings: AnnotatorSettings = annotatorSettings())
Link copied to clipboard
fun MarkdownTable(content: String, node: ASTNode, style: TextStyle, annotatorSettings: AnnotatorSettings = annotatorSettings(), headerBlock: @Composable (String, ASTNode, Dp, TextStyle) -> Unit = { content, header, tableWidth, style ->
MarkdownTableHeader(
content = content, header = header, tableWidth = tableWidth, style = style, annotatorSettings = annotatorSettings,
)
}, rowBlock: @Composable (String, ASTNode, Dp, TextStyle) -> Unit = { content, header, tableWidth, style ->
MarkdownTableRow(
content = content, header = header, tableWidth = tableWidth, style = style, annotatorSettings = annotatorSettings,
)
})
Link copied to clipboard
fun MarkdownTableBasicText(content: String, cell: ASTNode, style: TextStyle, maxLines: Int = 1, overflow: TextOverflow = TextOverflow.Ellipsis, annotatorSettings: AnnotatorSettings = annotatorSettings())
Link copied to clipboard
fun MarkdownTableHeader(content: String, header: ASTNode, tableWidth: Dp, style: TextStyle, verticalAlignment: Alignment.Vertical = Alignment.CenterVertically, maxLines: Int = 1, overflow: TextOverflow = TextOverflow.Ellipsis, annotatorSettings: AnnotatorSettings = annotatorSettings())
Link copied to clipboard
fun MarkdownTableRow(content: String, header: ASTNode, tableWidth: Dp, style: TextStyle, verticalAlignment: Alignment.Vertical = Alignment.CenterVertically, maxLines: Int = 1, overflow: TextOverflow = TextOverflow.Ellipsis, annotatorSettings: AnnotatorSettings = annotatorSettings())
Link copied to clipboard
fun MarkdownText(content: String, modifier: Modifier = Modifier, style: TextStyle = LocalMarkdownTypography.current.text)
fun MarkdownText(content: AnnotatedString, modifier: Modifier = Modifier, style: TextStyle = LocalMarkdownTypography.current.text, extendedSpans: ExtendedSpans? = LocalMarkdownExtendedSpans.current.extendedSpans?.invoke())
fun MarkdownText(content: AnnotatedString, modifier: Modifier = Modifier, style: TextStyle = LocalMarkdownTypography.current.text, onTextLayout: (TextLayoutResult, Color?) -> Unit?)
fun MarkdownText(content: String, node: ASTNode, style: TextStyle, modifier: Modifier = Modifier, contentChildType: IElementType? = null, annotatorSettings: AnnotatorSettings = annotatorSettings())
Link copied to clipboard
fun VerticalMarkdownDivider(modifier: Modifier = Modifier, color: Color = LocalMarkdownColors.current.dividerColor, thickness: Dp = LocalMarkdownDimens.current.dividerThickness)