update markup builder api

This commit is contained in:
yggverse 2024-09-14 05:25:50 +03:00
parent e10b693bbf
commit 849bc2459b
2 changed files with 122 additions and 74 deletions

View file

@ -12,15 +12,46 @@ namespace app::browser::main::tab::page::content::text
{
class Gemini : public Gtk::Viewport
{
/*
* Tools (currently is private)
*/
struct Line
{
struct Match
{
static bool link(
const Glib::ustring & GEMTEXT,
Glib::ustring & address,
Glib::ustring & date,
Glib::ustring & alt
);
};
};
struct Markup
{
struct Make
{
static Glib::ustring link(
const Glib::ustring & ADDRESS,
const Glib::ustring & DATE,
const Glib::ustring & ALT
);
};
static Glib::ustring make(
const Glib::ustring & GEMTEXT
);
};
/*
* Gemini class API
*/
public:
Gemini(
const Glib::ustring & GEMTEXT
);
static Glib::ustring to_pango_markup(
const Glib::ustring & GEMTEXT
);
};
}