Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mortuie/react-katex-component
React Component for rendering Math with Katex.
https://github.com/mortuie/react-katex-component
katex latex react tex
Last synced: 22 days ago
JSON representation
React Component for rendering Math with Katex.
- Host: GitHub
- URL: https://github.com/mortuie/react-katex-component
- Owner: Mortuie
- Created: 2018-03-08T12:26:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-03-18T00:16:00.000Z (over 6 years ago)
- Last Synced: 2024-09-17T03:30:44.639Z (about 2 months ago)
- Topics: katex, latex, react, tex
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React-Katex-Component
This is a react component which can be used to render maths equations on the screen. It uses Khan Academy's `Katex` to generate the html.## Installing
You can install it with npm:
```
npm install react-katex-component
```When using within a react project you need to add the `Katex CSS file` within your index.html file. The required cdn tag is as follows:
```html
```## Usage
Once the package has been installed it can be used as follows:```jsx
import React, {Component} from 'react';
import KatexComponent from 'react-katex-component';export default class Test extends Component {
render() {
return ;
}
}