mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
26 lines
No EOL
592 B
C++
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);
|
|
};
|
|
} |