Skip to content

The original GitHub preview is bad (with bugs). This repo helps preview GitHub readme files with math.

Notifications You must be signed in to change notification settings

rk-terence/github-readme-preview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

Math on GitHub is buggy. This repository is to provide a bug-free markdown preview with mathematical formulas that may be broken in the original GitHub markdown renderer.

Once this website is deployed, suppose your website is sub.example.com, you can view a properly rendered version of a GitHub markdown file.

For example, suppose a README.md file is located in a repository named blabla, its path inside this directory is doc/README.md, and the owner of this repository is someone, you can visit

https://sub.example.com?user=someone&repo=blabla&path=doc/README.md

and you shall see a properly rendered version.

Note that you should provide a GitHub access token, as this will use the GitHub API to fetch the raw content of the specified markdown file.

Deploy with netlify

This project can be readily deployed to netlify.

Deploy with Netlify

Please set environment variable GITHUB_AUTH_TOKEN to your GitHub access token in your netlify site configuration.

About

The original GitHub preview is bad (with bugs). This repo helps preview GitHub readme files with math.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published