You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,27 @@
7
7
8
8
Add TeX math equations to your Markdown documents rendered by [markdown-it](https://github.com/markdown-it/markdown-it) parser. [KaTeX](https://github.com/Khan/KaTeX) is used as a fast math renderer.
9
9
10
+
## What's New?
11
+
*`markdown-it-texmath` reached quite a stable state with version 1.0 .
12
+
* Native `begin{...}` / `end{...}` environments are supported as delimiters itself ... thanks to [William Stein](https://github.com/williamstein) for [proposing](https://github.com/goessner/markdown-it-texmath/issues/41).
13
+
14
+
```
15
+
\begin{equation}
16
+
a^2+b^2=c^2
17
+
\end{equation}
18
+
```
19
+
They can even be nested.
20
+
```
21
+
\begin{equation}
22
+
\begin{pmatrix}
23
+
A & B \\ B & C
24
+
\end{pmatrix}
25
+
\end{equation}
26
+
```
27
+
28
+
* Different delimiters can be merged. Delimiters options property supports array notation for that. Example: `delimiters: ['dollars','beg_end']`. Thanks to [Liu YongLiang](https://github.com/tlylt) for [proposing](https://github.com/goessner/markdown-it-texmath/issues/40).
29
+
30
+
10
31
## Features
11
32
Simplify the process of authoring markdown documents containing math formulas.
12
33
This extension is a comfortable tool for scientists, engineers and students with markdown as their first choice document format.
@@ -39,6 +60,10 @@ This extension is a comfortable tool for scientists, engineers and students with
39
60
* inline: ``$$...$$``
40
61
* display: `$$...$$`
41
62
* display + equation number: `$$...$$ (1)`
63
+
*`'beg_end'` (display math only)
64
+
* inline: N/A
65
+
* display: `begin{...}...end{...}`
66
+
* display + equation number: N/A
42
67
43
68
## Show me
44
69
@@ -123,6 +148,14 @@ Use following links for `texmath.js` and `texmath.css`
123
148
But if someone wants to help here out, pull requests are always welcome.
124
149
125
150
## CHANGELOG
151
+
### [1.0.0] on May 28, 2022
152
+
* Update to KaTeX version `0.15.6`.
153
+
* Update to `markdown-it``13.0.1`.
154
+
*[Bug fixed](https://github.com/goessner/markdown-it-texmath/pull/42) in level handling with `markdown-it`. Thanks to [williamstein](https://github.com/williamstein).
155
+
*[Bug fixed](https://github.com/goessner/markdown-it-texmath/pull/43) in mapping with `markdown-it`. Thanks to [williamstein](https://github.com/williamstein).
156
+
* Supporting native `begin{..}` / `end{...}` environments as delimiters itself. Thanks to [williamstein](https://github.com/williamstein) for [proposing](https://github.com/goessner/markdown-it-texmath/issues/41).
157
+
* Merging different delimiters for simultaneous use via `delimiters:[<delims1>, <delims2>]`. Thanks to [tlylt](https://github.com/tlylt) for [proposing](https://github.com/goessner/markdown-it-texmath/issues/40).
158
+
126
159
### [0.9.7] on December 07, 2021
127
160
* Redundant `</math>` end-tag with display-mode equations removed. All modes were affected ... invisible effect though. Thanks to [yuanbug](https://github.com/yuanbug) for reporting.
constouterSpace=options&&options.outerSpace||false;// inline rules, effectively `dollars` require surrounding spaces, i.e ` $\psi$ `, to be accepted as inline formulas. This is primarily a guard against misinterpreting single `$`'s in normal markdown text (relevant for inline math only. Default: `false`, for backwards compatibility).
0 commit comments