Permalink
Browse files

Bundle KaTeX CSS files

This is not ideal, however the files are not currently included in the npm install.
See Khan/KaTeX#148
  • Loading branch information...
will-hart authored and yhatt committed Jul 21, 2016
1 parent 7a03713 commit 74ada4f19d06fc04d5c64d9430b0d0f87e1a1898
Showing with 17 additions and 0 deletions.
  1. +8 −0 LICENSE
  2. +1 −0 coffee/classes/mds_markdown.coffee
  3. +4 −0 gulpfile.coffee
  4. +1 −0 package.json
  5. BIN resources/katex/fonts/KaTeX_AMS-Regular.eot
  6. BIN resources/katex/fonts/KaTeX_AMS-Regular.ttf
  7. BIN resources/katex/fonts/KaTeX_AMS-Regular.woff
  8. BIN resources/katex/fonts/KaTeX_AMS-Regular.woff2
  9. BIN resources/katex/fonts/KaTeX_Caligraphic-Bold.eot
  10. BIN resources/katex/fonts/KaTeX_Caligraphic-Bold.ttf
  11. BIN resources/katex/fonts/KaTeX_Caligraphic-Bold.woff
  12. BIN resources/katex/fonts/KaTeX_Caligraphic-Bold.woff2
  13. BIN resources/katex/fonts/KaTeX_Caligraphic-Regular.eot
  14. BIN resources/katex/fonts/KaTeX_Caligraphic-Regular.ttf
  15. BIN resources/katex/fonts/KaTeX_Caligraphic-Regular.woff
  16. BIN resources/katex/fonts/KaTeX_Caligraphic-Regular.woff2
  17. BIN resources/katex/fonts/KaTeX_Fraktur-Bold.eot
  18. BIN resources/katex/fonts/KaTeX_Fraktur-Bold.ttf
  19. BIN resources/katex/fonts/KaTeX_Fraktur-Bold.woff
  20. BIN resources/katex/fonts/KaTeX_Fraktur-Bold.woff2
  21. BIN resources/katex/fonts/KaTeX_Fraktur-Regular.eot
  22. BIN resources/katex/fonts/KaTeX_Fraktur-Regular.ttf
  23. BIN resources/katex/fonts/KaTeX_Fraktur-Regular.woff
  24. BIN resources/katex/fonts/KaTeX_Fraktur-Regular.woff2
  25. BIN resources/katex/fonts/KaTeX_Main-Bold.eot
  26. BIN resources/katex/fonts/KaTeX_Main-Bold.ttf
  27. BIN resources/katex/fonts/KaTeX_Main-Bold.woff
  28. BIN resources/katex/fonts/KaTeX_Main-Bold.woff2
  29. BIN resources/katex/fonts/KaTeX_Main-Italic.eot
  30. BIN resources/katex/fonts/KaTeX_Main-Italic.ttf
  31. BIN resources/katex/fonts/KaTeX_Main-Italic.woff
  32. BIN resources/katex/fonts/KaTeX_Main-Italic.woff2
  33. BIN resources/katex/fonts/KaTeX_Main-Regular.eot
  34. BIN resources/katex/fonts/KaTeX_Main-Regular.ttf
  35. BIN resources/katex/fonts/KaTeX_Main-Regular.woff
  36. BIN resources/katex/fonts/KaTeX_Main-Regular.woff2
  37. BIN resources/katex/fonts/KaTeX_Math-BoldItalic.eot
  38. BIN resources/katex/fonts/KaTeX_Math-BoldItalic.ttf
  39. BIN resources/katex/fonts/KaTeX_Math-BoldItalic.woff
  40. BIN resources/katex/fonts/KaTeX_Math-BoldItalic.woff2
  41. BIN resources/katex/fonts/KaTeX_Math-Italic.eot
  42. BIN resources/katex/fonts/KaTeX_Math-Italic.ttf
  43. BIN resources/katex/fonts/KaTeX_Math-Italic.woff
  44. BIN resources/katex/fonts/KaTeX_Math-Italic.woff2
  45. BIN resources/katex/fonts/KaTeX_Math-Regular.eot
  46. BIN resources/katex/fonts/KaTeX_Math-Regular.ttf
  47. BIN resources/katex/fonts/KaTeX_Math-Regular.woff
  48. BIN resources/katex/fonts/KaTeX_Math-Regular.woff2
  49. BIN resources/katex/fonts/KaTeX_SansSerif-Bold.eot
  50. BIN resources/katex/fonts/KaTeX_SansSerif-Bold.ttf
  51. BIN resources/katex/fonts/KaTeX_SansSerif-Bold.woff
  52. BIN resources/katex/fonts/KaTeX_SansSerif-Bold.woff2
  53. BIN resources/katex/fonts/KaTeX_SansSerif-Italic.eot
  54. BIN resources/katex/fonts/KaTeX_SansSerif-Italic.ttf
  55. BIN resources/katex/fonts/KaTeX_SansSerif-Italic.woff
  56. BIN resources/katex/fonts/KaTeX_SansSerif-Italic.woff2
  57. BIN resources/katex/fonts/KaTeX_SansSerif-Regular.eot
  58. BIN resources/katex/fonts/KaTeX_SansSerif-Regular.ttf
  59. BIN resources/katex/fonts/KaTeX_SansSerif-Regular.woff
  60. BIN resources/katex/fonts/KaTeX_SansSerif-Regular.woff2
  61. BIN resources/katex/fonts/KaTeX_Script-Regular.eot
  62. BIN resources/katex/fonts/KaTeX_Script-Regular.ttf
  63. BIN resources/katex/fonts/KaTeX_Script-Regular.woff
  64. BIN resources/katex/fonts/KaTeX_Script-Regular.woff2
  65. BIN resources/katex/fonts/KaTeX_Size1-Regular.eot
  66. BIN resources/katex/fonts/KaTeX_Size1-Regular.ttf
  67. BIN resources/katex/fonts/KaTeX_Size1-Regular.woff
  68. BIN resources/katex/fonts/KaTeX_Size1-Regular.woff2
  69. BIN resources/katex/fonts/KaTeX_Size2-Regular.eot
  70. BIN resources/katex/fonts/KaTeX_Size2-Regular.ttf
  71. BIN resources/katex/fonts/KaTeX_Size2-Regular.woff
  72. BIN resources/katex/fonts/KaTeX_Size2-Regular.woff2
  73. BIN resources/katex/fonts/KaTeX_Size3-Regular.eot
  74. BIN resources/katex/fonts/KaTeX_Size3-Regular.ttf
  75. BIN resources/katex/fonts/KaTeX_Size3-Regular.woff
  76. BIN resources/katex/fonts/KaTeX_Size3-Regular.woff2
  77. BIN resources/katex/fonts/KaTeX_Size4-Regular.eot
  78. BIN resources/katex/fonts/KaTeX_Size4-Regular.ttf
  79. BIN resources/katex/fonts/KaTeX_Size4-Regular.woff
  80. BIN resources/katex/fonts/KaTeX_Size4-Regular.woff2
  81. BIN resources/katex/fonts/KaTeX_Typewriter-Regular.eot
  82. BIN resources/katex/fonts/KaTeX_Typewriter-Regular.ttf
  83. BIN resources/katex/fonts/KaTeX_Typewriter-Regular.woff
  84. BIN resources/katex/fonts/KaTeX_Typewriter-Regular.woff2
  85. +1 −0 resources/katex/katex.min.css
  86. +2 −0 sass/slide.sass
View
@@ -2,6 +2,14 @@ The MIT License (MIT)
Copyright (c) 2016 Yuki Hattori (yukihattori1116@gmail.com)
This software also uses portions of the KaTeX and underscore.js projects, which are
MIT licensed with the following copyrights:
KaTeX Copyright (c) 2015 Khan Academy
underscore.js Copyright (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative
Reporters & Editors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
@@ -32,6 +32,7 @@ module.exports = class MdsMarkdown
'markdown-it-mark': {}
'markdown-it-emoji':
shortcuts: {}
'markdown-it-katex': {}
@createMarkdownIt: (opts, plugins) ->
md = markdownIt(opts)
View
@@ -77,6 +77,8 @@ gulp.task 'compile:sass', ->
.pipe $.sass()
.pipe $.sourcemaps.write()
.pipe gulp.dest('css')
gulp.src ['resources/katex/fonts/*']
.pipe gulp.dest('css/fonts')
gulp.task 'compile:coffee:production', ['clean:js'], ->
gulp.src 'coffee/**/*.coffee'
@@ -91,6 +93,8 @@ gulp.task 'compile:sass:production', ['clean:css'], ->
.pipe $.cssnano
zindex: false
.pipe gulp.dest('css')
gulp.src ['resources/katex/fonts/*']
.pipe gulp.dest('css/fonts')
gulp.task 'dist', ['clean:dist'], ->
gulp.src([
View
@@ -48,6 +48,7 @@
"jschardet": "^1.4.1",
"markdown-it": "^6.0.1",
"markdown-it-emoji": "^1.1.0",
"markdown-it-katex": "^2.0.1",
"markdown-it-mark": "^2.0.0",
"path": "^0.12.7",
"photon": "git+https://github.com/connors/photon.git",
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,3 +1,5 @@
@import '../resources/katex/katex.min'
#to-pdf-wrapper
display: none

0 comments on commit 74ada4f

Please sign in to comment.