File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -101,15 +101,15 @@ class parser_registry {
101101 }
102102};
103103
104- template <typename ParserType >
104+ template <typename parser_type >
105105class parser_registrar {
106106public:
107107 parser_registrar () {
108108 parser_registry::register_parser (instance);
109109 }
110110
111111private:
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;
You can’t perform that action at this time.
0 commit comments