parsegemini

Library for parsing text/gemini

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install parsegemini
choosenim install parsegemini
git clone https://github.com/autumngray/parsegemini

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
parsegemini - - - - - - -

Source

Repository https://github.com/autumngray/parsegemini
Homepage https://github.com/autumngray/parsegemini
Registry Source nimble_official

README

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)