renderBlock method
Implementation
@visibleForTesting
String renderBlock(DeltaInsertOp bop, List<DeltaInsertOp> ops) {
final OpToHtmlConverter converter = OpToHtmlConverter(bop, _converterOptions);
final HtmlParts htmlParts = converter.getHtmlParts();
if (bop.isCodeBlock()) {
return htmlParts.openingTag +
encodeHtml(ops.map((DeltaInsertOp iop) => iop.isCustomEmbed() ? _renderCustom(iop, bop) : iop.insert.value).join('')) +
htmlParts.closingTag;
}
final String inlines = ops.map((DeltaInsertOp op) => _renderInline(op, bop)).join('');
return htmlParts.openingTag + (inlines.isEmpty ? brTag : inlines) + htmlParts.closingTag;
}