mattn/go-mastodon

Provide formatted text in --json?

leahneukirchen opened this issue · 2 comments

Currently, we can decide whether we want --simplejson, which lacks a lot of detail (acct, date...)
or --json, which contains all upstream data but no conveniently formatted text.

Would it be possible to add the result of textContent to the --json format too, so it's easier to work with it without formatting HTML downstream?

mattn commented

how about new flag to generate text from go's template?

$ mstdn stream --template "{{.Content | text}}"