Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hachiya-kurisu/sisyphus
- Owner: hachiya-kurisu
- License: bsd-2-clause
- Created: 2024-12-15T08:06:25.000Z (25 days ago)
- Default Branch: main
- Last Pushed: 2024-12-24T14:41:22.000Z (16 days ago)
- Last Synced: 2024-12-24T15:15:50.117Z (16 days ago)
- Topics: gemtext, go, golang, html, markdown
- Language: Go
- Homepage: https://blekksprut.net/sisyphus
- Size: 51.8 KB
- Stars: 1
- 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)
```