Skip to content
Repos

DevPlaceApp

C++ 532 B14 lines Opens in site

Directory Raw Download

#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
32.1ms