Also avoid maybe uninitialized warning.

This commit is contained in:
Relintai 2022-07-20 00:44:17 +02:00
parent 37fdc4938f
commit 88bc492eb1

View File

@ -59,6 +59,9 @@ String MarkdownRenderer::render_to_html(const String &markdown) {
case RENDER_TYPE_HTML_TOC: {
renderer = hoedown_html_toc_renderer_new(_toc_level);
} break;
default: {
renderer = hoedown_html_renderer_new(static_cast<hoedown_html_flags>(_html_flags), _toc_level);
} break;
}
int hoedown_ext_flags = 0;