Skip to content

Commit 1a635f6

Browse files
jryansRiotRobot
authored andcommitted
Include KaTeX CSS as a dependency
This changes the KaTeX CSS inclusion to function just like the other bits of the CSS that we import from dependencies.
1 parent b4167ea commit 1a635f6

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"gfm.css": "^1.1.2",
6060
"highlight.js": "^10.1.2",
6161
"jsrsasign": "^9.1.5",
62+
"katex": "^0.12.0",
6263
"matrix-js-sdk": "9.3.0-rc.1",
6364
"matrix-react-sdk": "3.10.0-rc.1",
6465
"matrix-widget-api": "^0.1.0-beta.10",

src/vector/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ limitations under the License.
2323
// in webpack.config.js
2424
require('gfm.css/gfm.css');
2525
require('highlight.js/styles/github.css');
26+
require('katex/dist/katex.css')
2627

2728
// These are things that can run before the skin loads - be careful not to reference the react-sdk though.
2829
import {parseQsFromFragment} from "./url_utils";

webpack.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ module.exports = (env, argv) => {
4141
"jitsi": "./src/vector/jitsi/index.ts",
4242
"usercontent": "./node_modules/matrix-react-sdk/src/usercontent/index.js",
4343

44-
// CSS for LaTeX maths outout
45-
"katex": "./node_modules/matrix-react-sdk/node_modules/katex/dist/katex.min.css",
46-
4744
// CSS themes
4845
"theme-legacy": "./node_modules/matrix-react-sdk/res/themes/legacy-light/css/legacy-light.scss",
4946
"theme-legacy-dark": "./node_modules/matrix-react-sdk/res/themes/legacy-dark/css/legacy-dark.scss",

0 commit comments

Comments
 (0)