wiki2gemtext

A Golang module that provides the ability to extract a Wikia/Fandom article into gemtext.

Repository

Installation

go get git.sr.ht/~matthewp/wiki2gemtext

Usage

import (
 "git.sr.ht/~matthewp/wiki2gemtext"
)

func main() {
    url := "https://sonic.fandom.com/wiki/Sonic_the_Hedgehog"

    gemtext, error := wiki2gemtext.Transform(url)
	if err != nil {
		log.Fatal(err)
	}
    fmt.Println(gemtext)
}