Skip to content

Commit 9d27cdf

Browse files
author
yggverse
committed
update readme
1 parent bf4ac4b commit 9d27cdf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,23 @@ assert_eq!("Item".to_source(), "* Item")
132132

133133
#### Quote
134134

135+
##### Struct
136+
135137
``` rust
136138
match Quote::from("> Quote") {
137139
Some(quote) => assert_eq!(quote.value, "Quote"),
138140
None => assert!(false),
139141
}
140142
```
141143

144+
##### Trait
145+
146+
``` rust
147+
use ggemtext::line::quote::Gemtext;
148+
assert_eq!("> Quote".as_value(), Some("Quote"))
149+
assert_eq!("Quote".to_source(), "> Quote")
150+
```
151+
142152
## Integrations
143153

144154
* [Yoda](https://github.com/YGGverse/Yoda) - Browser for Gemini Protocol

0 commit comments

Comments
 (0)