Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hachiya-kurisu/sisyphus

convert gemtext to html or markdown
https://github.com/hachiya-kurisu/sisyphus

gemtext go golang html markdown

Last synced: 10 days ago
JSON representation

convert gemtext to html or markdown

Awesome Lists containing this project

README

        

# sisyphus

convert gemtext to html/markdown

(api, interfaces, cli tool - everything is likely to change drastically 😂

## cli usage

create a markdown readme from gemtext:
```
$ sisyphus -f markdown README.md
```

convert gemtext to html:
```
$ sisyphus index.html
```

## from go

```
// html
sisyphus.Cook(os.Stdin, os.Stdout, &sisyphus.Html{})

// markdown
sisyphus.Cook(os.Stdin, os.Stdout, &sisyphus.Markdown{})

// convert from a string
sisyphus.Convert("=> somewhere a link", &sisyphus.Html{})

// hooks
flavor := &sisyphus.Html{}
flavor.OnLink(".jpg", hook)
```