diff options
Diffstat (limited to 'examples/markdown.rs')
| -rw-r--r-- | examples/markdown.rs | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/examples/markdown.rs b/examples/markdown.rs index f909894..1bbdd73 100644 --- a/examples/markdown.rs +++ b/examples/markdown.rs @@ -19,39 +19,10 @@ //! This example demonstrates Germ's capabilities for converting Gemtext to //! Markdown. -const EXAMPLE_GEMTEXT: &str = r#"```This is alt-text -Here goes the pre-formatted text. - -This continues the pre-formatted text on a new line after a blank line. -``` - -# This is a heading - -This is some text. - -This is more text after a blank line. - -* This is a single list item. -* This is the next list item. - -* This is a new list. -* This is the next item on the new list. - -## This is a sub-heading - -> This is a blockquote. - -### This is a sub-sub-heading. - -=> gemini://gem.rest/ This is a link to GemRest -=> /somewhere - -That was a link without text."#; - fn main() { // Convert the Gemtext to Markdown let html = germ::convert::from_string( - EXAMPLE_GEMTEXT, + germ::EXAMPLE_GEMTEXT, &germ::convert::Target::Markdown, ); |