A
A
Alex2017-02-20 15:34:32
JavaScript
Alex, 2017-02-20 15:34:32

How to download release list from github?

On request
GET /repos/:owner/:repo/releases
You can download a list of releases from the repository. But the problem is that the property is bodyreturned in markdown.
Is it possible to somehow load the same list, but for the property bodyto be in HTML?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alex, 2017-02-21
@Kozack

Decision

curl -v https://api.github.com/repos/atom/atom/releases -H "Accept: application/vnd.github.v3.html+json"

D
Denis Ineshin, 2017-02-20
@IonDen

What for? The original is in MD.
Just convert the downloaded data to what you need:
https://github.com/evilstreak/markdown-js

K
Kovalsky, 2017-10-24
@Kozack

"Why doesn't the regular expression work?" - in short, because like this . If you tried googling, you would know that "\b" only works for the first few ASCII characters. In the same place on SO it is written how to get around this .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question