From 69bf645246113752d6c3f009637db75ac75aad5d Mon Sep 17 00:00:00 2001 From: luca0N! Date: Tue, 29 Mar 2022 23:55:05 -0300 Subject: [PATCH] Fix unordered list interpretation Fixed a bug which caused MarkdownParser to add dashes to the beginning of the buffer when it contains a dash which is not used to specify an item of an unordered list. --- src/MarkdownParser.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MarkdownParser.cxx b/src/MarkdownParser.cxx index ea0e57a..22b8889 100644 --- a/src/MarkdownParser.cxx +++ b/src/MarkdownParser.cxx @@ -230,7 +230,7 @@ std::string make_html(std::filesystem::path const &path) { break; case '-': if (x != 0) { - html += c; + append('-'); break; }