Skip to content

Code to convert paragraph.xyz posts stored as a json structure on arweave to markdown

License

Notifications You must be signed in to change notification settings

gabrielayuso/paragraphxyz-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

paragraphxyz-tools

Tools that help work with paragraph.xyz data

convert is a package that can convert the json structure stored on arweave to markdown

package main

import (
	"fmt"

	"github.com/gabrielayuso/paragraphxyz-tools/convert"
)

func main() {
	md, err := convert.PostJSONToMarkdown([]byte(`{"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Hello, world!"}]}]}`))
	if err != nil {
		panic(err)
	}
	fmt.Println(md)
}

About

Code to convert paragraph.xyz posts stored as a json structure on arweave to markdown

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages