satdump/src-core/common/widgets/markdown_helper.h
2023-11-20 14:54:12 -05:00

26 lines
No EOL
592 B
C++

#pragma once
#include <string>
#include "imgui/imgui.h"
#include "imgui/imgui_markdown.h"
#include <map>
namespace widgets
{
class MarkdownHelper
{
private:
std::string markdown_;
ImGui::MarkdownConfig mdConfig;
static void link_callback(ImGui::MarkdownLinkCallbackData data_);
static ImGui::MarkdownImageData image_callback(ImGui::MarkdownLinkCallbackData data_);
std::map<std::string, ImGui::MarkdownImageData> texture_buffer;
public:
MarkdownHelper();
void render();
void set_md(std::string md);
};
}