finesse.utilities.bug_report.wrap_block

finesse.utilities.bug_report.wrap_block(code: str, lang: str = 'python') str[source]

Wraps a string in a markdown code block like.

`python print('foo') `

Parameters
codestr

code to wrap

langstr, optional

language of code, by default “python”

Returns
str

Markdown code block