Markdown

class Markdown(markdown: String, showHtml: Boolean = false, hyperlinks: Boolean? = null) : Widget

A Widget that renders a GitHub Flavored markdown string.

Constructors

Link copied to clipboard
constructor(markdown: String, showHtml: Boolean = false, hyperlinks: Boolean? = null)

Functions

Link copied to clipboard
open override fun measure(t: Terminal, width: Int): WidthRange
Link copied to clipboard
open override fun render(t: Terminal, width: Int): Lines
Link copied to clipboard
fun Widget.withPadding(padding: Padding, padEmptyLines: Boolean = true): Widget

Add padding around this widget.

fun Widget.withPadding(padEmptyLines: Boolean = true, padding: Padding.Builder.() -> Unit): Widget
fun Widget.withPadding(all: Int, padEmptyLines: Boolean = true): Widget
fun Widget.withPadding(top: Int, right: Int, bottom: Int, left: Int, padEmptyLines: Boolean = true): Widget