Skip to content

Commit 180090e

Browse files
committed
Fix bullet point rendering in markdown files.
1 parent 6e8d594 commit 180090e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/markdown_parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ std::unique_ptr<document> markdown_parser::load(const wxString& path) const {
5050
const auto& text = converter.get_text();
5151
const auto& headings = converter.get_headings();
5252
const auto& links = converter.get_links();
53-
doc->buffer.set_content(text);
53+
doc->buffer.set_content(wxString::FromUTF8(text));
5454
for (const auto& pair : converter.get_id_positions()) {
5555
doc->id_positions[pair.first] = pair.second;
5656
}

src/parser.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@ class parser_registry {
101101
}
102102
};
103103

104-
template <typename ParserType>
104+
template <typename parser_type>
105105
class parser_registrar {
106106
public:
107107
parser_registrar() {
108108
parser_registry::register_parser(instance);
109109
}
110110

111111
private:
112-
static inline ParserType instance{};
112+
static inline parser_type instance{};
113113
};
114114

115115
#define REGISTER_PARSER(parser_type) static parser_registrar<parser_type> parser_type##_registrar;

0 commit comments

Comments
 (0)