A markdown parser API for GitHub. SWR for 2 days with revalidation every 5 minutes.
Source: https://github.com/jacob-ebey/github-md
You can change the URL when browsing github to to include
-md
for a preview of the rendered markdown
/[username]/[repository]/[branch|tag|sha]/[filepath]
attributes
: The attributes parsed off the front matterhtml
: The HTML rendered from the markdown
- https://github-md.com/remix-run/remix/main/docs/index.md
- https://github-md.com/facebook/react/17.0.2/README.md
/[username]/[repository]/[branch|tag|sha]
sha
: The sha of the commitfiles
: The list of files in the format of{ path: string; sha: string }