Summary

open external class Summary(source)

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
external fun addBreak(): Summary

Adds an HTML line break (
) to the summary buffer

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

Adds an HTML codeblock to the summary buffer

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

Adds a collapsable HTML details element to the summary buffer

Link copied to clipboard
external fun addEOL(): Summary

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

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

Adds an HTML section heading element

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

Adds an HTML image tag to the summary buffer

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

Adds an HTML anchor tag to the summary buffer

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

Adds an HTML list to the summary buffer

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

Adds an HTML blockquote to the summary buffer

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

Adds raw text to the summary buffer

Link copied to clipboard
external fun addSeparator(): Summary

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
external fun clear(): Promise<Summary>

Clears the summary buffer and wipes the summary file

Link copied to clipboard
external fun emptyBuffer(): Summary

Resets the summary buffer without writing to summary file

Link copied to clipboard
external fun isEmptyBuffer(): Boolean

If the summary buffer is empty

Link copied to clipboard
external fun stringify(): String

Returns the current summary buffer as a string

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

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