Companion

Holds constants.

Functions

Link copied to clipboard
private fun code(body: String, language: String = ""): String

Creates a Markdown code block containing body and using the given language.

Link copied to clipboard
private fun String?.ifNullOrBlank(then: () -> String): String

Returns this if this is neither null nor blank, and returns the output of then otherwise.

Link copied to clipboard
private fun italic(body: String): String

Creates an italicized piece of Markdown.

Link copied to clipboard
private fun section(title: String, body: String): String

Creates a Markdown section with the given title and body.

Link copied to clipboard
private fun spoiler(body: String, heading: String = "Click to show"): String

Creates a Markdown spoiler tag with the given heading and body.