From 9d27cdfb49718f686a2733ade7dbc30ceb809312 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 16 Mar 2025 14:45:13 +0200 Subject: [PATCH] update readme --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 6b9f9a9..abfef44 100644 --- a/README.md +++ b/README.md @@ -132,6 +132,8 @@ assert_eq!("Item".to_source(), "* Item") #### Quote +##### Struct + ``` rust match Quote::from("> Quote") { Some(quote) => assert_eq!(quote.value, "Quote"), @@ -139,6 +141,14 @@ match Quote::from("> Quote") { } ``` +##### Trait + +``` rust +use ggemtext::line::quote::Gemtext; +assert_eq!("> Quote".as_value(), Some("Quote")) +assert_eq!("Quote".to_source(), "> Quote") +``` + ## Integrations * [Yoda](https://github.com/YGGverse/Yoda) - Browser for Gemini Protocol