馃 The Definitive Gemini Protocol Toolkit
gemini gemini-protocol gemtext parser zero-dependency toolkit ast converter html markdown cli networking
at main 66 lines 1.2 kB view raw
1#![deny( 2 warnings, 3 nonstandard_style, 4 unused, 5 future_incompatible, 6 rust_2018_idioms, 7 unsafe_code, 8 clippy::all, 9 clippy::nursery, 10 clippy::pedantic 11)] 12#![recursion_limit = "128"] 13 14#[cfg(feature = "ast")] pub mod ast; 15 16#[cfg(feature = "convert")] pub mod convert; 17 18#[cfg(feature = "request")] pub mod request; 19 20#[cfg(feature = "meta")] pub mod meta; 21 22#[cfg(feature = "quick")] pub mod quick; 23 24#[cfg(feature = "example-gemtext")] 25pub const EXAMPLE_GEMTEXT: &str = r"```This is alt-text 26Here goes the pre-formatted text. 27 28This continues the pre-formatted text on a new line after a blank line. 29``` 30 31# This is a heading 32 33This is some text. 34 35This is more text after a blank line. 36 37* This is a single list item. 38* This is the next list item. 39 40* This is a new list. 41* This is the next item on the new list. 42 43## This is a sub-heading 44 45> This is a blockquote. 46 47### This is a sub-sub-heading. 48 49=> gemini://gem.rest/ This is a link to GemRest 50=> /somewhere 51 52```This is a preformatted block containing inner Gemtext. 53=> gemini://fuwn.me/ This is a link. 54 55* This is a list item. 56 57> This is a blockquote. 58 59# This is a heading. 60 61## This is a sub-heading. 62 63### This is a sub-sub-heading. 64``` 65 66That was a link without text.";