Skip to content

autumngray/parsegemini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

parsegemini

A simple parser for text/gemini content. Read the documentation at the Gemini Project Website for more information.

Usage

  import streams

  const gemtext = """
# Hello, Gemini!
=> gemini://example.com Look, a link!

```alt text
some
  verbatim
     text
```"""
var p: GeminiParser
open(p, newStringStream(gemtext))
while true:
  p.next()
  case p.kind
  of gmiEof: break
  of gmiLink: echo $p.kind & " " & p.uri & " " & p.text
  else: echo $p.kind & " " & p.text
close(p)

About

A parser for text/gemini

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages