#pragma once #include #include #include "slides_ui.hpp" std::shared_ptr parse_slides(const std::string& md_file); std::string load_file(const std::string& md_file); struct Parser { int last = 0; bool error = false; std::shared_ptr deck; std::string title; std::string content; nlohmann::json config; Parser(); bool parse(const std::string& input); void finalize(); std::shared_ptr results() { return deck; } };