diff --git a/src/MarkdownParser.cxx b/src/MarkdownParser.cxx index ae0b0ce..dffe216 100644 --- a/src/MarkdownParser.cxx +++ b/src/MarkdownParser.cxx @@ -100,7 +100,7 @@ std::string make_html(std::filesystem::path const &path) { // End ul tag if it's active and a new line doesn't contain an // item. - if (tag_ul && buf[0] != '-') { + if (tag_ul && newline && buf[0] != '-') { tag_ul = false; html += ""; }