#pragma once
// Spec: SPEC.md UX-MD-01. MarkdownUI look-alike with the DevPlace theme. Links open through the global handler
// (setDefaultLinkHandler), images load through RemoteImages.
#include <string>
#include "ui/Views.hpp"
namespace dp::ui {
// Rebuilt every frame: the parsed AST is cached by text hash (MarkdownCache). Input over
// spec::MarkdownLimits::kMaxInputChars is cut and a "Content truncated" line is appended.
ViewPtr MarkdownView(const std::string& markdown, float baseFontSize = 17);
} // namespace dp::ui