Add markdown sample

This commit is contained in:
Jeremy Soller 2022-10-26 15:37:26 -06:00
parent 77d416b2fd
commit 851e55d950
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
10 changed files with 155 additions and 11 deletions

View file

@ -3,7 +3,6 @@
use cosmic_text::{FontSystem, SwashCache, TextAction, TextBuffer, TextMetrics};
use orbclient::{Color, EventOption, Renderer, Window, WindowFlag};
use std::{env, fs, process, thread, time::{Duration, Instant}};
use unicode_segmentation::UnicodeSegmentation;
fn redraw(window: &mut Window, buffer: &mut TextBuffer<'_>, swash_cache: &mut SwashCache) {
let bg_color = Color::rgb(0x34, 0x34, 0x34);