mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
add text/plain content support
This commit is contained in:
parent
a73bb3aea6
commit
30e3ae691a
8 changed files with 66 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue