Skip to content

inkdropapp/inkdrop-math

Repository files navigation

math

It adds math syntax support to markdown editor and preview. It uses KaTeX to render math typesetting.

Install

ipm install math

Usage

LaTeX syntax

You can write equations in LaTeX syntax like this:

```math
\int_0^\infty \frac{x^3}{e^x-1}\,dx = \frac{\pi^4}{15}
```

or

$$
\int_0^\infty \frac{x^3}{e^x-1}\,dx = \frac{\pi^4}{15}
$$

It will be rendered as:

block example

Inline example:

Inline math: $\int_0^\infty \frac{x^3}{e^x-1}\,dx = \frac{\pi^4}{15}$

It will produce:

inline example

Equation numbers

You can use {equation} to have automatic equation numbers. For example:

```math
\begin{equation}
2(x+5)-7 = 3(x-2)
\end{equation}
```

```math
\begin{equation}
2x+10-7 = 3x-6
\end{equation}
```

```math
\begin{equation}
9 = x
\end{equation}
```

It will produce:

equation numbers example

Changelog

See the Releases page for the changelog.

About

Add math syntax support to markdown editor and preview

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors