Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade rehype-katex #301

Merged
merged 2 commits into from
Nov 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ before_script:

after_success:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- lerna run release --scope zmarkdown
- cd ./packages/zmarkdown && rm ./public/js
- cp -r ./dist ./public/js
- npm run build-demo

deploy:
provider: pages
Expand Down
87 changes: 43 additions & 44 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"lockfiles": "lerna exec -- npm install",
"posttest": "lerna run posttest --scope zmarkdown",
"d": "node --inspect --debug-brk ./node_modules/.bin/jest --runInBand -i",
"clean": "lerna clean --yes && npm run bootstrap && lerna run prepare && npm run test"
"clean": "lerna clean --yes && del-cli node_modules && npm run bootstrap && lerna run prepare && npm run test",
"build-demo": "lerna run release --scope zmarkdown && del-cli ./packages/zmarkdown/public/js && cp -r ./packages/zmarkdown/dist ./packages/zmarkdown/public/js"
},
"engines": {
"node": ">=8",
Expand Down
3 changes: 2 additions & 1 deletion packages/zmarkdown/__tests__/regressions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ describe('Regression tests', () => {
expect(rendered).toMatchSnapshot()
})

test('SVG camelCase attributes', async () => {
test.skip('SVG camelCase attributes', async () => {
// skipped because rehype-katex doesn't need an SVG fracline for this anymore
const response = await a.post(html, {
md: [
'$\\hat \\theta_{MC} = \\frac{\\sum_{i = 1}^n P(Y_i | X = 1)}{\\pi^3}$',
Expand Down
3 changes: 2 additions & 1 deletion packages/zmarkdown/__tests__/server.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ describe('HTML endpoint', () => {
expect(rendered).toBe('<p>&#x3C;— x —></p>')
})

it('works with camelCase attributes', async () => {
it.skip('works with camelCase attributes', async () => {
// skipped because rehype-katex doesn't need an SVG fracline for this anymore
const response = await a.post(html, {
md: '$$\\hat \\theta_{MC} = \\frac{\\sum_{i = 1}^n P(Y_i | X = 1)}{\\pi^3}$$',
opts: {},
Expand Down
2 changes: 1 addition & 1 deletion packages/zmarkdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"rehype-footnotes-title": "file:../rehype-footnotes-title",
"rehype-highlight": "^2.2.0",
"rehype-html-blocks": "file:../rehype-html-blocks",
"rehype-katex": "1.1.0",
"rehype-katex": "^1.2.0",
"rehype-postfix-footnote-anchors": "file:../rehype-postfix-footnote-anchors",
"rehype-slug": "^2.0.1",
"rehype-stringify": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/zmarkdown/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<!-- mon template.css -->
<script src="./ansi_up.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/katex.min.css" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.0/katex.min.css" crossorigin="anonymous">
<link rel="stylesheet" href="./css/zmd.css">
<link rel="stylesheet" href="./css/main.css">
<link rel="stylesheet" href="./main.css" media="screen">
Expand Down