add text/plain content support

This commit is contained in:
yggverse 2024-08-18 15:32:31 +03:00
parent a73bb3aea6
commit 30e3ae691a
8 changed files with 66 additions and 2 deletions

View file

@ -1,5 +1,6 @@
#include "content.hpp"
#include "content/text/gemini.hpp"
#include "content/text/plain.hpp"
using namespace app::browser::main::tab::page;
@ -32,6 +33,16 @@ void Content::text_gemini(
);
}
void Content::text_plain(
const Glib::ustring & text
) {
update(
new content::text::Plain(
text
)
);
}
// @TODO text_plain, picture, video, etc.
// Private helpers