v0.2.0
-
Added Julia, Rust, and R support.
-
Added boolean keyword argument
complete
for code chunks. This allows code
chunks that contain incomplete units of code, such as part of a function
definition or part of a loop. Any stdout from a chunk withcomplete=false
will appear with the next chunk withcomplete=true
(the default value). -
Session hashes are now more robust by including session names and chunk
complete
status. This prevents the collision of sessions with identical
code but different processing for code output. -
Added boolean keyword argument
example
for code chunks. This displays the
Markdown source along with the output, putting both inside a single div with
classexample
and putting them individually in divs with classes
exampleMarkup
andexampleOutput
, respectively. -
Added boolean keyword argument
outside_main
for code chunks. Code chunks
withoutside_main=true
at the beginning of a session will overwrite the
beginning of the Codebraid source template, while code chunks with
outside_main=true
at the end of a session will overwrite the end of the
source template. This is primarily for compiled languages like Rust, so
that the implicitmain()
function defined in the default source template
can be overwritten. -
In language definitions,
source_start
andsource_end
are now combined
into a singlesource_template
. Delimiter fields are renamed to
stdout_delim
andstderr_delim
(added underscore to parallel future,
optional delimiters). -
There is no longer any attempt to sync
RawInline
HTML precisely with the
document source, since this can fail in some cases with HTML comments.
RawBlock
HTML was already not synced precisely due to similar issues. -
More robust stdout and stderr parsing.