Summary

external class Summary(source)

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Adds an HTML line break (
) to the summary buffer

Link copied to clipboard
fun addCodeBlock(code: String, lang: String = definedExternally): Summary

Adds an HTML codeblock to the summary buffer

Link copied to clipboard
fun addDetails(label: String, content: String): Summary

Adds a collapsable HTML details element to the summary buffer

Link copied to clipboard

Adds the operating system-specific end-of-line marker to the buffer

Link copied to clipboard
fun addHeading(text: String, level: Number = definedExternally): Summary

Adds an HTML section heading element

fun addHeading(text: String, level: String = definedExternally): Summary
Link copied to clipboard
fun addImage(src: String, alt: String, options: SummaryImageOptions = definedExternally): Summary

Adds an HTML image tag to the summary buffer

Link copied to clipboard
fun addLink(text: String, href: String): Summary

Adds an HTML anchor tag to the summary buffer

Link copied to clipboard
fun addList(items: ReadonlyArray<String>, ordered: Boolean = definedExternally): Summary

Adds an HTML list to the summary buffer

Link copied to clipboard
fun addQuote(text: String, cite: String = definedExternally): Summary

Adds an HTML blockquote to the summary buffer

Link copied to clipboard
fun addRaw(text: String, addEOL: Boolean = definedExternally): Summary

Adds raw text to the summary buffer

Link copied to clipboard

Adds an HTML thematic break (


) to the summary buffer

Link copied to clipboard

Adds an HTML table to the summary buffer

Link copied to clipboard

Clears the summary buffer and wipes the summary file

Link copied to clipboard

Resets the summary buffer without writing to summary file

Link copied to clipboard

If the summary buffer is empty

Link copied to clipboard

Returns the current summary buffer as a string

Link copied to clipboard
fun write(options: SummaryWriteOptions = definedExternally): Promise<Summary>

Writes text in the buffer to the summary buffer file and empties buffer. Will append by default.