【文件属性】:
文件名称:react-latex:React组件以渲染Latex字符串
文件大小:51KB
文件格式:ZIP
更新时间:2021-05-17 08:31:57
JavaScript
React胶乳
基于React组件以渲染乳胶字符串
安装
$ npm install --save react-latex
用法
在JavaScript中
使用乳胶之前
包括在您的html Katex CSS中
< html >
< head >
< link
href =" //cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/katex.min.css "
rel =" stylesheet "
/>
</ head >
</ html >
内联乳胶
var Latex = require ( 'react-latex' ) ;
...
render ( ) {
return (
< h3>
【文件预览】:
react-latex-master
----.gitignore(33B)
----README.md(1KB)
----CHANGELOG.md(421B)
----test()
--------index.js(2KB)
--------strings()
----LICENSE(1KB)
----.eslintrc(124B)
----.gitattributes(12B)
----package.json(1KB)
----src()
--------latex.js(4KB)
----.babelrc(108B)
----.travis.yml(108B)
----gulpfile.js(2KB)
----package-lock.json(244KB)