Package-level declarations
Types
Link copied to clipboard
class MarkdownAguiTextRenderer(colors: @Composable () -> MarkdownColors = { markdownAguiColors() }, typography: @Composable () -> MarkdownTypography = { markdownAguiTypography() }, flavour: MarkdownFlavourDescriptor = GFMFlavourDescriptor()) : AguiTextRenderer
Draws agent prose as Markdown.
Link copied to clipboard
Link copied to clipboard
class MarkdownColors(val text: Color, val codeBackground: Color, val inlineCodeBackground: Color, val dividerColor: Color, val tableBackground: Color, val alert: MarkdownAlertColors)
The colours MarkdownAguiTextRenderer draws with.
Link copied to clipboard
class MarkdownTypography(val h1: TextStyle, val h2: TextStyle, val h3: TextStyle, val h4: TextStyle, val h5: TextStyle, val h6: TextStyle, val text: TextStyle, val code: TextStyle, val inlineCode: TextStyle, val quote: TextStyle, val textLink: TextLinkStyles, val table: TextStyle)
The text styles MarkdownAguiTextRenderer draws with.
Functions
Link copied to clipboard
fun markdownAguiColors(text: Color = Color.Black, codeBackground: Color = text.copy(alpha = 0.08f), inlineCodeBackground: Color = text.copy(alpha = 0.08f), dividerColor: Color = text.copy(alpha = 0.24f), tableBackground: Color = text.copy(alpha = 0.04f), alert: MarkdownAlertColors = markdownAlertColors(darkTheme = text.luminance() > 0.15f)): MarkdownColors
Markdown colours derived from one text colour.
Link copied to clipboard
Markdown typography derived from one text style.
Link copied to clipboard
Alert accents in the hues GitHub draws them in, one set for a light surface and one for a dark.