Skip to content

Commit

Permalink
Add lists and subsequent link paras to test text
Browse files Browse the repository at this point in the history
  • Loading branch information
tdemin committed Nov 7, 2020
1 parent 6ee9efa commit 98d6ff6
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions cmd/gmnhg/main.go
Expand Up @@ -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!
Expand All @@ -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)
}

0 comments on commit 98d6ff6

Please sign in to comment.