addCodeBlock method
Adds an HTML codeblock
to the summary buffer.
Implementation
void addCodeBlock(String codeblock, [String? lang]) {
final attributes = {
if (lang != null) 'lang': lang,
};
final element = _wrap(
tag: 'pre',
content: _wrap(tag: 'code', content: codeblock),
attributes: attributes,
);
return addRaw(element, addEOL: true);
}