/ piacw.com / dev / final / node_modules / markdown-it-latex /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]dist/2 years ago -  
[DIR]node_modules/2 years ago -  
[DIR]src/2 years ago -  
[DIR]test/2 years ago -  
[TXT]README.md2 years ago804 0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]package.json2 years ago2.2K0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]webpack.config.babel.js2 years ago908 0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]yarn.lock2 years ago141K0fb859dc fixed mobile overflwo options [كارل مبارك]
README.md

markdown-it-latex

Plugin for markdown-it, supports KaTex and AsciiMath.

Installation

yarn install markdown-it-latex

Usage

for node.js

import markdownIt from 'markdown-it'
import markdownItLatex from 'markdown-it-latex'
const mdi = markdownIt()
mdi.use(markdownItLatex)
mdi.render('`$E = mc^2$`')
mdi.render('`@(1/2[1-(1/2)^n])/(1-(1/2))=s_n@`')
mdi.render(`\`\`\`math
\oint_C x^3\, dx + 4y^2\, dy
\`\`\``)
mdi.render(`\`\`\`AsciiMath
oint_Cx^3 dx+4y^2 dy
\`\`\``)

for browser

You also need to import the css:

import 'markdown-it-latex/dist/index.css'

Or you can add the css to the web page directly.

Development

Build

yarn build:watch

Test

yarn test

Distribution

yarn release && npm publish

Todo

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80