From 98d6ff6d5f211d5cc30277b86dda19cda418cccc Mon Sep 17 00:00:00 2001 From: Timur Demin Date: Sun, 8 Nov 2020 00:06:43 +0500 Subject: [PATCH] Add lists and subsequent link paras to test text --- cmd/gmnhg/main.go | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/cmd/gmnhg/main.go b/cmd/gmnhg/main.go index 9b6c092..046a760 100644 --- a/cmd/gmnhg/main.go +++ b/cmd/gmnhg/main.go @@ -19,13 +19,23 @@ This is some markdown [text](https://tdem.in). This is some more text. ![This is some image](https://tdem.in/favicon.ico) +[This is some full-blown link.](https://tdem.in/nyaa) + This is some more plain text. More of it! -## Subheading 2 ++ Unordered list item ++ Another list item + * Indented list item. + * Another one. ++ Third. -More text here. +1. Ordered list item. +2. Another one. + * and another inset list. + * text. +3. Yay. -## Subheading 3 +## Subheading 2 More text! @@ -37,5 +47,5 @@ func main() { ast := markdown.Parse([]byte(text), parser.NewWithExtensions(parser.CommonExtensions)) spew.Dump(ast) geminiContent := markdown.Render(ast, gemini.NewRenderer()) - fmt.Printf("---\noriginal:\n---\n%s\n---\ngemini:\n---\n%s\n", text, geminiContent) + fmt.Printf("---\noriginal:\n---\n%s---\ngemini:\n---\n%s", text, geminiContent) }