Replace Khan/KaTeX with KaTeX/KaTeX (#1781)

* Replace Khan/KaTeX with KaTeX/KaTeX

* Remove RawGit links

* Remove old files
This commit is contained in:
ylemkimon
2018-11-20 11:24:33 +09:00
committed by Kevin Barabash
parent f4e24183d6
commit 112582daa5
34 changed files with 398 additions and 245 deletions

View File

@@ -11,7 +11,7 @@ Promise.all(process.argv.slice(3).map(file =>
.then(body => {
// Replace size badge url
// eslint-disable-next-line max-len
body = body.replace(/(https:\/\/img\.badgesize\.io\/Khan\/KaTeX\/v)(?:.+)(\/dist\/katex\.min\.js\?compression=gzip)/g, `$1${version}$2`);
body = body.replace(/(https:\/\/img\.badgesize\.io\/KaTeX\/KaTeX\/v)(?:.+)(\/dist\/katex\.min\.js\?compression=gzip)/g, `$1${version}$2`);
// Replace CDN urls
// 1 - url prefix: "http…/KaTeX/