Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exec ¶ added in v0.4.0
Exec appends a code block, executes it, and appends the output. It returns the captured output, the process exit code, and any error.
func Extract ¶
Extract parses a showboat document and returns the sequence of CLI commands that would recreate it. OutputBlock and ImageOutputBlock are skipped since they are generated by running code blocks. If outputFile is non-empty it is used as the filename in the emitted commands; otherwise the input file path is used.
func Image ¶ added in v0.4.0
Image appends an image reference to a showboat document. The input is either a plain path to an image file or a markdown image reference of the form . When a markdown reference is provided the alt text is preserved; otherwise it is derived from the generated filename.
func Init ¶
Init creates a new showboat document with a title and timestamp. Returns an error if the file already exists.
Types ¶
type Diff ¶
Diff represents a mismatch between expected and actual output of a code block.