Package-level declarations

Functions

Link copied to clipboard
fun MarkdownStyling.Paragraph.Companion.dark(inlinesStyling: InlinesStyling = InlinesStyling.dark()): MarkdownStyling.Paragraph
fun MarkdownStyling.Code.Companion.dark(editorTextStyle: TextStyle = defaultEditorTextStyle.copy(color = blockContentColorDark), indented: MarkdownStyling.Code.Indented = Indented.dark(editorTextStyle), fenced: MarkdownStyling.Code.Fenced = Fenced.dark(editorTextStyle)): MarkdownStyling.Code
fun MarkdownStyling.List.Companion.dark(baseTextStyle: TextStyle = defaultTextStyle, ordered: MarkdownStyling.List.Ordered = Ordered.dark(numberStyle = baseTextStyle), unordered: MarkdownStyling.List.Unordered = Unordered.dark(bulletStyle = baseTextStyle.copy(fontWeight = FontWeight.Black))): MarkdownStyling.List
fun MarkdownStyling.ThematicBreak.Companion.dark(padding: PaddingValues = PaddingValues(), lineWidth: Dp = 2.dp, lineColor: Color = Color.DarkGray): MarkdownStyling.ThematicBreak
fun MarkdownStyling.BlockQuote.Companion.dark(padding: PaddingValues = PaddingValues(horizontal = 16.dp, vertical = 8.dp), lineWidth: Dp = 4.dp, lineColor: Color = Color.DarkGray, pathEffect: PathEffect? = null, strokeCap: StrokeCap = StrokeCap.Square, textColor: Color = Color(0xFF848d97)): MarkdownStyling.BlockQuote
fun MarkdownStyling.Heading.H1.Companion.dark(baseTextStyle: TextStyle = defaultTextStyle.copy( fontSize = defaultTextSize * 2, lineHeight = defaultTextSize * 2 * 1.25, fontWeight = FontWeight.SemiBold, ), inlinesStyling: InlinesStyling = InlinesStyling.dark(baseTextStyle), underlineWidth: Dp = 1.dp, underlineColor: Color = Color(0xFF21262d), underlineGap: Dp = 10.dp, padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp)): MarkdownStyling.Heading.H1
fun MarkdownStyling.Heading.H2.Companion.dark(baseTextStyle: TextStyle = defaultTextStyle.copy( fontSize = defaultTextSize * 1.5, lineHeight = defaultTextSize * 1.5 * 1.25, fontWeight = FontWeight.SemiBold, ), inlinesStyling: InlinesStyling = InlinesStyling.dark(baseTextStyle), underlineWidth: Dp = 1.dp, underlineColor: Color = Color(0xFF21262d), underlineGap: Dp = 6.dp, padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp)): MarkdownStyling.Heading.H2
fun MarkdownStyling.Heading.H3.Companion.dark(baseTextStyle: TextStyle = defaultTextStyle.copy( fontSize = defaultTextSize * 1.25, lineHeight = defaultTextSize * 1.25 * 1.25, fontWeight = FontWeight.SemiBold, ), inlinesStyling: InlinesStyling = InlinesStyling.dark(baseTextStyle), underlineWidth: Dp = 0.dp, underlineColor: Color = Color.Unspecified, underlineGap: Dp = 0.dp, padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp)): MarkdownStyling.Heading.H3
fun MarkdownStyling.Heading.H4.Companion.dark(baseTextStyle: TextStyle = defaultTextStyle.copy( fontSize = defaultTextSize, lineHeight = defaultTextSize * 1.25, fontWeight = FontWeight.SemiBold, ), inlinesStyling: InlinesStyling = InlinesStyling.dark(baseTextStyle), underlineWidth: Dp = 0.dp, underlineColor: Color = Color.Unspecified, underlineGap: Dp = 0.dp, padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp)): MarkdownStyling.Heading.H4
fun MarkdownStyling.Heading.H5.Companion.dark(baseTextStyle: TextStyle = defaultTextStyle.copy( fontSize = defaultTextSize * .875, lineHeight = defaultTextSize * .875 * 1.25, fontWeight = FontWeight.SemiBold, ), inlinesStyling: InlinesStyling = InlinesStyling.dark(baseTextStyle), underlineWidth: Dp = 0.dp, underlineColor: Color = Color.Unspecified, underlineGap: Dp = 0.dp, padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp)): MarkdownStyling.Heading.H5
fun MarkdownStyling.Heading.H6.Companion.dark(baseTextStyle: TextStyle = defaultTextStyle.copy( color = Color(0xFF656d76), fontSize = defaultTextSize * .85, lineHeight = defaultTextSize * .85 * 1.25, fontWeight = FontWeight.SemiBold, ), inlinesStyling: InlinesStyling = InlinesStyling.dark(baseTextStyle), underlineWidth: Dp = 0.dp, underlineColor: Color = Color.Unspecified, underlineGap: Dp = 0.dp, padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp)): MarkdownStyling.Heading.H6
fun MarkdownStyling.List.Unordered.Companion.dark(bullet: Char? = '•', bulletStyle: TextStyle = defaultTextStyle.copy(fontWeight = FontWeight.Black), bulletContentGap: Dp = 16.dp, itemVerticalSpacing: Dp = 16.dp, itemVerticalSpacingTight: Dp = 4.dp, padding: PaddingValues = PaddingValues(start = 16.dp)): MarkdownStyling.List.Unordered
fun InlinesStyling.Companion.dark(textStyle: TextStyle = defaultTextStyle, inlineCode: SpanStyle = defaultEditorTextStyle .copy(fontSize = textStyle.fontSize * .85, background = Color(0xFF343941)) .toSpanStyle(), link: SpanStyle = textStyle .copy(color = Color(0xFF2F81F7), textDecoration = TextDecoration.Underline) .toSpanStyle(), emphasis: SpanStyle = textStyle.copy(fontStyle = FontStyle.Italic).toSpanStyle(), strongEmphasis: SpanStyle = textStyle.copy(fontWeight = FontWeight.Bold).toSpanStyle(), inlineHtml: SpanStyle = textStyle.toSpanStyle(), renderInlineHtml: Boolean = false): InlinesStyling
fun MarkdownStyling.Heading.Companion.dark(baseTextStyle: TextStyle = defaultTextStyle, h1: MarkdownStyling.Heading.H1 = Heading.H1.light( baseTextStyle.copy( fontSize = baseTextStyle.fontSize * 2, lineHeight = baseTextStyle.fontSize * 2 * 1.25, fontWeight = FontWeight.SemiBold, ), ), h2: MarkdownStyling.Heading.H2 = Heading.H2.light( baseTextStyle.copy( fontSize = baseTextStyle.fontSize * 1.5, lineHeight = baseTextStyle.fontSize * 1.5 * 1.25, fontWeight = FontWeight.SemiBold, ), ), h3: MarkdownStyling.Heading.H3 = Heading.H3.light( baseTextStyle.copy( fontSize = baseTextStyle.fontSize * 1.25, lineHeight = baseTextStyle.fontSize * 1.25 * 1.25, fontWeight = FontWeight.SemiBold, ), ), h4: MarkdownStyling.Heading.H4 = Heading.H4.light( baseTextStyle.copy( fontSize = baseTextStyle.fontSize, lineHeight = baseTextStyle.fontSize * 1.25, fontWeight = FontWeight.SemiBold, ), ), h5: MarkdownStyling.Heading.H5 = Heading.H5.light( baseTextStyle.copy( fontSize = baseTextStyle.fontSize * .875, lineHeight = baseTextStyle.fontSize * .875 * 1.25, fontWeight = FontWeight.SemiBold, ), ), h6: MarkdownStyling.Heading.H6 = Heading.H6.light( baseTextStyle.copy( color = Color(0xFF656d76), fontSize = baseTextStyle.fontSize * .85, lineHeight = baseTextStyle.fontSize * .85 * 1.25, fontWeight = FontWeight.SemiBold, ), )): MarkdownStyling.Heading
fun MarkdownStyling.HtmlBlock.Companion.dark(textStyle: TextStyle = defaultEditorTextStyle.copy(color = Color.Gray), padding: PaddingValues = PaddingValues(8.dp), shape: Shape = RoundedCornerShape(4.dp), background: Color = Color.DarkGray, borderWidth: Dp = 1.dp, borderColor: Color = Color.Gray, fillWidth: Boolean = true): MarkdownStyling.HtmlBlock
fun MarkdownStyling.List.Ordered.Companion.dark(numberStyle: TextStyle = defaultTextStyle, numberContentGap: Dp = 8.dp, numberMinWidth: Dp = 16.dp, numberTextAlign: TextAlign = TextAlign.End, itemVerticalSpacing: Dp = 16.dp, itemVerticalSpacingTight: Dp = 4.dp, padding: PaddingValues = PaddingValues(start = 16.dp)): MarkdownStyling.List.Ordered
fun MarkdownStyling.Code.Indented.Companion.dark(editorTextStyle: TextStyle = defaultEditorTextStyle.copy(color = blockContentColorDark), padding: PaddingValues = PaddingValues(16.dp), shape: Shape = RectangleShape, background: Color = blockBackgroundColorDark, borderWidth: Dp = 0.dp, borderColor: Color = Color.Unspecified, fillWidth: Boolean = true, scrollsHorizontally: Boolean = true): MarkdownStyling.Code.Indented
fun MarkdownStyling.Code.Fenced.Companion.dark(editorTextStyle: TextStyle = defaultEditorTextStyle.copy(color = blockContentColorDark), padding: PaddingValues = PaddingValues(16.dp), shape: Shape = RectangleShape, background: Color = blockBackgroundColorDark, borderWidth: Dp = 0.dp, borderColor: Color = Color.Unspecified, fillWidth: Boolean = true, scrollsHorizontally: Boolean = true, infoTextStyle: TextStyle = TextStyle(color = Color.Gray, fontSize = 12.sp), infoPadding: PaddingValues = PaddingValues(start = 8.dp, end = 8.dp, bottom = 8.dp), infoPosition: MarkdownStyling.Code.Fenced.InfoPosition = InfoPosition.Hide): MarkdownStyling.Code.Fenced
fun MarkdownStyling.Companion.dark(baseTextStyle: TextStyle = defaultTextStyle, editorTextStyle: TextStyle = defaultEditorTextStyle, inlinesStyling: InlinesStyling = InlinesStyling.dark(baseTextStyle), blockVerticalSpacing: Dp = 16.dp, paragraph: MarkdownStyling.Paragraph = Paragraph.dark(inlinesStyling), heading: MarkdownStyling.Heading = Heading.dark(baseTextStyle), blockQuote: MarkdownStyling.BlockQuote = BlockQuote.dark(textColor = baseTextStyle.color), code: MarkdownStyling.Code = Code.dark(baseTextStyle), list: MarkdownStyling.List = List.dark(baseTextStyle), image: MarkdownStyling.Image = Image.default(), thematicBreak: MarkdownStyling.ThematicBreak = ThematicBreak.dark(), htmlBlock: MarkdownStyling.HtmlBlock = HtmlBlock.dark(editorTextStyle.copy(color = blockContentColorLight))): MarkdownStyling
Link copied to clipboard
fun MarkdownStyling.Image.Companion.default(alignment: Alignment = Alignment.Center, contentScale: ContentScale = ContentScale.Fit, padding: PaddingValues = PaddingValues(), shape: Shape = RectangleShape, background: Color = Color.Unspecified, borderWidth: Dp = 0.dp, borderColor: Color = Color.Unspecified): MarkdownStyling.Image
Link copied to clipboard
fun MarkdownStyling.Paragraph.Companion.light(inlinesStyling: InlinesStyling = InlinesStyling.light()): MarkdownStyling.Paragraph
fun MarkdownStyling.Code.Companion.light(editorTextStyle: TextStyle = defaultEditorTextStyle.copy(color = blockContentColorLight), indented: MarkdownStyling.Code.Indented = Indented.light(editorTextStyle), fenced: MarkdownStyling.Code.Fenced = Fenced.light(editorTextStyle)): MarkdownStyling.Code
fun MarkdownStyling.List.Companion.light(baseTextStyle: TextStyle = defaultTextStyle, ordered: MarkdownStyling.List.Ordered = Ordered.light(numberStyle = baseTextStyle), unordered: MarkdownStyling.List.Unordered = Unordered.light(bulletStyle = baseTextStyle.copy(fontWeight = FontWeight.Black))): MarkdownStyling.List
fun MarkdownStyling.ThematicBreak.Companion.light(padding: PaddingValues = PaddingValues(), lineWidth: Dp = 2.dp, lineColor: Color = Color.LightGray): MarkdownStyling.ThematicBreak
fun MarkdownStyling.BlockQuote.Companion.light(padding: PaddingValues = PaddingValues(horizontal = 16.dp, vertical = 8.dp), lineWidth: Dp = 4.dp, lineColor: Color = Color(0xFFD0D7DE), pathEffect: PathEffect? = null, strokeCap: StrokeCap = StrokeCap.Square, textColor: Color = Color(0xFF656d76)): MarkdownStyling.BlockQuote
fun MarkdownStyling.Heading.H1.Companion.light(baseTextStyle: TextStyle = defaultTextStyle.copy( fontSize = defaultTextSize * 2, lineHeight = defaultTextSize * 2 * 1.25, fontWeight = FontWeight.SemiBold, ), inlinesStyling: InlinesStyling = InlinesStyling.light(baseTextStyle), underlineWidth: Dp = 1.dp, underlineColor: Color = Color(0xFFD8DEE4), underlineGap: Dp = 10.dp, padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp)): MarkdownStyling.Heading.H1
fun MarkdownStyling.Heading.H2.Companion.light(baseTextStyle: TextStyle = defaultTextStyle.copy( fontSize = defaultTextSize * 1.5, lineHeight = defaultTextSize * 1.5 * 1.25, fontWeight = FontWeight.SemiBold, ), inlinesStyling: InlinesStyling = InlinesStyling.light(baseTextStyle), underlineWidth: Dp = 1.dp, underlineColor: Color = Color(0xFFD8DEE4), underlineGap: Dp = 6.dp, padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp)): MarkdownStyling.Heading.H2
fun MarkdownStyling.Heading.H3.Companion.light(baseTextStyle: TextStyle = defaultTextStyle.copy( fontSize = defaultTextSize * 1.25, lineHeight = defaultTextSize * 1.25 * 1.25, fontWeight = FontWeight.SemiBold, ), inlinesStyling: InlinesStyling = InlinesStyling.light(baseTextStyle), underlineWidth: Dp = 0.dp, underlineColor: Color = Color.Unspecified, underlineGap: Dp = 0.dp, padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp)): MarkdownStyling.Heading.H3
fun MarkdownStyling.Heading.H4.Companion.light(baseTextStyle: TextStyle = defaultTextStyle.copy( fontSize = defaultTextSize, lineHeight = defaultTextSize * 1.25, fontWeight = FontWeight.SemiBold, ), inlinesStyling: InlinesStyling = InlinesStyling.light(baseTextStyle), underlineWidth: Dp = 0.dp, underlineColor: Color = Color.Unspecified, underlineGap: Dp = 0.dp, padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp)): MarkdownStyling.Heading.H4
fun MarkdownStyling.Heading.H5.Companion.light(baseTextStyle: TextStyle = defaultTextStyle.copy( fontSize = defaultTextSize * .875, lineHeight = defaultTextSize * .875 * 1.25, fontWeight = FontWeight.SemiBold, ), inlinesStyling: InlinesStyling = InlinesStyling.light(baseTextStyle), underlineWidth: Dp = 0.dp, underlineColor: Color = Color.Unspecified, underlineGap: Dp = 0.dp, padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp)): MarkdownStyling.Heading.H5
fun MarkdownStyling.Heading.H6.Companion.light(baseTextStyle: TextStyle = defaultTextStyle.copy( color = Color(0xFF656d76), fontSize = defaultTextSize * .85, lineHeight = defaultTextSize * .85 * 1.25, fontWeight = FontWeight.SemiBold, ), inlinesStyling: InlinesStyling = InlinesStyling.light(baseTextStyle), underlineWidth: Dp = 0.dp, underlineColor: Color = Color.Unspecified, underlineGap: Dp = 0.dp, padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp)): MarkdownStyling.Heading.H6
fun MarkdownStyling.List.Unordered.Companion.light(bullet: Char? = '•', bulletStyle: TextStyle = defaultTextStyle.copy(fontWeight = FontWeight.Black), bulletContentGap: Dp = 16.dp, itemVerticalSpacing: Dp = 16.dp, itemVerticalSpacingTight: Dp = 4.dp, padding: PaddingValues = PaddingValues(start = 16.dp)): MarkdownStyling.List.Unordered
fun InlinesStyling.Companion.light(textStyle: TextStyle = defaultTextStyle, inlineCode: SpanStyle = defaultEditorTextStyle .copy(fontSize = textStyle.fontSize * .85, background = Color(0xFFEFF1F2)) .toSpanStyle(), link: SpanStyle = textStyle.copy(color = Color(0xFF0969DA), textDecoration = TextDecoration.Underline).toSpanStyle(), emphasis: SpanStyle = textStyle.copy(fontStyle = FontStyle.Italic).toSpanStyle(), strongEmphasis: SpanStyle = textStyle.copy(fontWeight = FontWeight.Bold).toSpanStyle(), inlineHtml: SpanStyle = textStyle.toSpanStyle(), renderInlineHtml: Boolean = false): InlinesStyling
fun MarkdownStyling.Heading.Companion.light(baseTextStyle: TextStyle = defaultTextStyle, h1: MarkdownStyling.Heading.H1 = Heading.H1.light( baseTextStyle.copy( fontSize = baseTextStyle.fontSize * 2, lineHeight = baseTextStyle.fontSize * 2 * 1.25, fontWeight = FontWeight.SemiBold, ), ), h2: MarkdownStyling.Heading.H2 = Heading.H2.light( baseTextStyle.copy( fontSize = baseTextStyle.fontSize * 1.5, lineHeight = baseTextStyle.fontSize * 1.5 * 1.25, fontWeight = FontWeight.SemiBold, ), ), h3: MarkdownStyling.Heading.H3 = Heading.H3.light( baseTextStyle.copy( fontSize = baseTextStyle.fontSize * 1.25, lineHeight = baseTextStyle.fontSize * 1.25 * 1.25, fontWeight = FontWeight.SemiBold, ), ), h4: MarkdownStyling.Heading.H4 = Heading.H4.light( baseTextStyle.copy( fontSize = baseTextStyle.fontSize, lineHeight = baseTextStyle.fontSize * 1.25, fontWeight = FontWeight.SemiBold, ), ), h5: MarkdownStyling.Heading.H5 = Heading.H5.light( baseTextStyle.copy( fontSize = baseTextStyle.fontSize * .875, lineHeight = baseTextStyle.fontSize * .875 * 1.25, fontWeight = FontWeight.SemiBold, ), ), h6: MarkdownStyling.Heading.H6 = Heading.H6.light( baseTextStyle.copy( color = Color(0xFF656d76), fontSize = baseTextStyle.fontSize * .85, lineHeight = baseTextStyle.fontSize * .85 * 1.25, fontWeight = FontWeight.SemiBold, ), )): MarkdownStyling.Heading
fun MarkdownStyling.HtmlBlock.Companion.light(textStyle: TextStyle = defaultEditorTextStyle.copy(color = Color.DarkGray), padding: PaddingValues = PaddingValues(8.dp), shape: Shape = RoundedCornerShape(4.dp), background: Color = Color.LightGray, borderWidth: Dp = 1.dp, borderColor: Color = Color.Gray, fillWidth: Boolean = true): MarkdownStyling.HtmlBlock
fun MarkdownStyling.List.Ordered.Companion.light(numberStyle: TextStyle = defaultTextStyle, numberContentGap: Dp = 8.dp, numberMinWidth: Dp = 16.dp, numberTextAlign: TextAlign = TextAlign.End, itemVerticalSpacing: Dp = 16.dp, itemVerticalSpacingTight: Dp = 4.dp, padding: PaddingValues = PaddingValues(start = 16.dp)): MarkdownStyling.List.Ordered
fun MarkdownStyling.Code.Indented.Companion.light(editorTextStyle: TextStyle = defaultEditorTextStyle.copy(color = blockContentColorLight), padding: PaddingValues = PaddingValues(16.dp), shape: Shape = RectangleShape, background: Color = blockBackgroundColorLight, borderWidth: Dp = 0.dp, borderColor: Color = Color.Unspecified, fillWidth: Boolean = true, scrollsHorizontally: Boolean = true): MarkdownStyling.Code.Indented
fun MarkdownStyling.Code.Fenced.Companion.light(editorTextStyle: TextStyle = defaultEditorTextStyle.copy(color = blockContentColorLight), padding: PaddingValues = PaddingValues(16.dp), shape: Shape = RectangleShape, background: Color = blockBackgroundColorLight, borderWidth: Dp = 0.dp, borderColor: Color = Color.Unspecified, fillWidth: Boolean = true, scrollsHorizontally: Boolean = true, infoTextStyle: TextStyle = TextStyle(color = Color.Gray, fontSize = 12.sp), infoPadding: PaddingValues = PaddingValues(bottom = 16.dp), infoPosition: MarkdownStyling.Code.Fenced.InfoPosition = InfoPosition.Hide): MarkdownStyling.Code.Fenced
fun MarkdownStyling.Companion.light(baseTextStyle: TextStyle = defaultTextStyle, editorTextStyle: TextStyle = defaultEditorTextStyle, inlinesStyling: InlinesStyling = InlinesStyling.light(baseTextStyle), blockVerticalSpacing: Dp = 16.dp, paragraph: MarkdownStyling.Paragraph = Paragraph.light(inlinesStyling), heading: MarkdownStyling.Heading = Heading.light(baseTextStyle), blockQuote: MarkdownStyling.BlockQuote = BlockQuote.light(textColor = baseTextStyle.color), code: MarkdownStyling.Code = Code.light(editorTextStyle), list: MarkdownStyling.List = List.light(baseTextStyle), image: MarkdownStyling.Image = Image.default(), thematicBreak: MarkdownStyling.ThematicBreak = ThematicBreak.light(), htmlBlock: MarkdownStyling.HtmlBlock = HtmlBlock.light(editorTextStyle.copy(color = blockContentColorLight))): MarkdownStyling