【文件属性】:
文件名称:editorjs-math:Editor.js的数学块(允许Tex语法)
文件大小:1.12MB
文件格式:ZIP
更新时间:2021-05-05 17:04:00
JavaScript
Editor.js的数学工具
将laTex文本转换为漂亮的数学方程式
演示: : 这是Editor.js的插件。 要使用此软件包,您需要先安装 以下是受支持的功能: :
通过NPM安装
取得包裹
npm i --save-dev editorjs-math
从CDN加载
< script src = "https://cdn.jsdelivr.net/npm/editorjs-math@1.0.2/dist/bundle.js" > < / script >
在您的应用程序中包含该模块
const mathTex = require ( 'editorjs-math' ) ;
// or import MathTex from 'editorjs-math';
用法
将一个新工具添加到Editor.js初始配置的tools属性中。
var editor = EditorJS (
【文件预览】:
editorjs-math-master
----package.json(871B)
----LICENSE(1KB)
----package-lock.json(79KB)
----dist()
--------fonts()
--------bundle.js(295KB)
----src()
--------index.js(7KB)
--------math-icon.svg(2KB)
--------index.css(1KB)
----.gitignore(79B)
----webpack.config.js(1KB)
----README.md(1KB)