mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
22 lines
508 B
C++
22 lines
508 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <memory>
|
|
|
|
struct FontStylesScheme;
|
|
|
|
// VoxelCore Markdown dialect
|
|
|
|
namespace markdown {
|
|
|
|
template <typename CharT>
|
|
struct Result {
|
|
/// @brief Text with erased markdown
|
|
std::basic_string<CharT> text;
|
|
/// @brief Text styles scheme
|
|
std::unique_ptr<FontStylesScheme> styles;
|
|
};
|
|
|
|
Result<char> process(std::string_view source, bool eraseMarkdown);
|
|
Result<wchar_t> process(std::wstring_view source, bool eraseMarkdown);
|
|
}
|