diff --git a/src/MarkdownParser.cxx b/src/MarkdownParser.cxx index 8d19a2b..235b8b5 100644 --- a/src/MarkdownParser.cxx +++ b/src/MarkdownParser.cxx @@ -158,7 +158,7 @@ std::string make_html(std::filesystem::path const &path) { // Bold check // Check whether this character has been escaped. if (tag_comment || buf[x-1] == '\\') { - append(&c); + append(c); break; } @@ -171,7 +171,7 @@ std::string make_html(std::filesystem::path const &path) { // been escaped. if (tag_comment || buf[x-1] == '\\') { - append(&c); + append(c); break; } @@ -185,7 +185,7 @@ std::string make_html(std::filesystem::path const &path) { // beginning of a new line. Ignore it // if this is not a new line. if (tag_comment || !newline) { - append(&c); + append(c); break; } @@ -195,7 +195,7 @@ std::string make_html(std::filesystem::path const &path) { // Check if this header was specified // right at the beginning of the line. (tag_h == 0 && x != 0)) { - append(&c); + append(c); break; } @@ -269,7 +269,7 @@ std::string make_html(std::filesystem::path const &path) { // Hyperlink text declaration has begun if (tag_comment || tag_a != NONE) { // Cannot add hyperlinks inside of hyperlinks; - append(&c); + append(c); break; } tag_a_buf = ""; @@ -280,7 +280,7 @@ std::string make_html(std::filesystem::path const &path) { // Hyperlink text declaration ended if (tag_comment || tag_a != READING_CONTENTS) { // Ignore if not reading hyperlink. - append(&c); + append(c); break; } tag_a = EXPECTING_URL; @@ -288,7 +288,7 @@ std::string make_html(std::filesystem::path const &path) { case '(': // Hyperlink address declaration has begun if (tag_comment || tag_a != EXPECTING_URL) { - append(&c); + append(c); break; } tag_a = READING_URL; @@ -296,7 +296,7 @@ std::string make_html(std::filesystem::path const &path) { case ')': // Hyperlink address declaration ended if (tag_comment || tag_a != READING_URL) { - append(&c); + append(c); break; } tag_a = NONE;