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: 8 months ago
JSON representation
🪨 convert gemtext to html or markdown
- Host: GitHub
- URL: https://github.com/hachiya-kurisu/sisyphus
- Owner: hachiya-kurisu
- License: bsd-2-clause
- Created: 2024-12-15T08:06:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-10T18:17:19.000Z (10 months ago)
- Last Synced: 2025-08-10T20:28:33.401Z (10 months ago)
- Topics: gemtext, go, golang, html, markdown
- Language: Go
- Homepage: https://blekksprut.net/sisyphus/
- Size: 59.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.gmi
- License: LICENSE
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)
```
## author
=> //blekksprut.net/ èœ‚è°·æ —æ –