table fixes
This commit is contained in:
@@ -258,7 +258,10 @@ static void stream_handle_data(StreamCtx *sc, const std::string &data) {
|
||||
if (nl == std::string::npos) break;
|
||||
std::string cur = sc->line_buf.substr(0, nl);
|
||||
sc->line_buf.erase(0, nl + 1);
|
||||
if (!sc->md.in_code && !is_table_line(cur)) {
|
||||
/* Inside a code block every line is rendered verbatim as code; only
|
||||
* outside a code block do table-shaped lines get accumulated for
|
||||
* box-drawing table rendering. */
|
||||
if (sc->md.in_code || !is_table_line(cur)) {
|
||||
flush_tbl(sc);
|
||||
render_md_line_print(cur, sc->md);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user