Releases: Mathpix/mathpix-markdown-it
2.0.12
- Added supporting for LaTeX commands
\diagbox,\slashbox, and\backslashboxto handle split table cells properly insidetabular. - Export to tsv. Added split cell conversion as:
\diagbox{Time}{Day}=>Day,Time\diagbox[dir=SW]{Time}{Day}=>Time,Day\backslashbox{Time}{Day}=>Day,Time\slashbox{Time}{Day}=>Time,Day
- Export to сsv. Added split cell conversion as:
\diagbox{Time}{Day}=>"Day,Time"\diagbox[dir=SW]{Time}{Day}=>"Time,Day"\backslashbox{Time}{Day}=>"Day,Time"\slashbox{Time}{Day}=>"Time,Day"
- Export to Markdown. Added split cell conversion as:
\diagbox{Time}{Day}=>Day <br> Time\diagbox[dir=SW]{Time}{Day}=>Time <br> Day\backslashbox{Time}{Day}=>Day <br> Time\slashbox{Time}{Day}=>Time <br> Day
- Added tests to check rendering and export of split cells
Examlpes:
\diagbox{Time}{Day}
mmd:
\begin{tabular}{|l|ccc|}
\hline
\diagbox{Time}{Day} & Mon & Tue & Wed \\
\hline
Morning & used & used & \\
Afternoon & & used & used \\
\hline
\end{tabular}
tsv:
Day,Time Mon Tue Wed
Morning used used
Afternoon used used
csv:
"Day,Time",Mon,Tue,Wed
Morning,used,used,
Afternoon,,used,used
Markdown:
| Day <br> Time | Mon | Tue | Wed |
| :--- | :---: | :---: | :---: |
| Morning | used | used | |
| Afternoon | | used | used |
\diagbox[dir=SW]{Time}{Day}
mmd:
\begin{tabular}{|l|ccc|}
\hline
\diagbox[dir=SW]{Time}{Day} & Mon & Tue & Wed \\
\hline
Morning & used & used & \\
Afternoon & & used & used \\
\hline
\end{tabular}
tsv:
Time,Day Mon Tue Wed
Morning used used
Afternoon used used
csv:
"Time,Day",Mon,Tue,Wed
Morning,used,used,
Afternoon,,used,used
Markdown:
| Time <br> Day | Mon | Tue | Wed |
| :--- | :---: | :---: | :---: |
| Morning | used | used | |
| Afternoon | | used | used |
\backslashbox{Time}{Day}
mmd:
\begin{tabular}{|l|ccc|}
\hline
\backslashbox{Time}{Day} & Mon & Tue & Wed \\
\hline
Morning & used & used & \\
Afternoon & & used & used \\
\hline
\end{tabular}
tsv:
Day,Time Mon Tue Wed
Morning used used
Afternoon used used
csv:
"Day,Time",Mon,Tue,Wed
Morning,used,used,
Afternoon,,used,used
Markdown:
| Day <br> Time | Mon | Tue | Wed |
| :--- | :---: | :---: | :---: |
| Morning | used | used | |
| Afternoon | | used | used |
\slashbox{Time}{Day}
mmd:
\begin{tabular}{|l|ccc|}
\hline
\slashbox{Time}{Day} & Mon & Tue & Wed \\
\hline
Morning & used & used & \\
Afternoon & & used & used \\
\hline
\end{tabular}
tsv:
Time,Day Mon Tue Wed
Morning used used
Afternoon used used
csv:
"Time,Day",Mon,Tue,Wed
Morning,used,used,
Afternoon,,used,used
Markdown:
| Time <br> Day | Mon | Tue | Wed |
| :--- | :---: | :---: | :---: |
| Morning | used | used | |
| Afternoon | | used | used |
2.0.0
Updated [email protected]
Fixes:
1. [email protected] the location of n-th root numbers is weird
Latex: $\sqrt[4]{3 \cdot 3 \cdot 3 \cdot 3}=?$
After:
2. Underline using html tag "<u>" does not support? #336
3. Changes have been made to asciimath. Now for functions of the form log an extra space will not be added before (
Latex: \log \frac{x}{y^{5}}
Asciimath before: log ((x)/(y^(5)))
Asciimath after: log((x)/(y^(5)))
4. MathJax 3.2.2. Long numbered equations extend beyond the screen
5. Formulas do not shrink when the screen is reduced
Before:
After:
6. Added cases MathJax package to support numcases environment.

1.3.6
Added options to enable render rules, renderOptions. By default, all rendering rules are available.
type default |
||
|---|---|---|
enable_markdown |
boolean true |
Enable markdown rules. If it is set to false, then all markdown rules will be disabled. This also disables the rules for enable_markdown_mmd_extensions. |
enable_latex |
boolean true |
Enable latex rules. If it is set to false, then all latex and math rules will be disabled. |
enable_markdown_mmd_extensions |
boolean true |
Enable markdown mmd extensions rules: smiles, asciiMath, mathML. If it is set to false then these rules will be disabled. |
1.3.0
- Updated [email protected]
- Updated react-app examples
- Added Next.js example. Example in codesandbox

1.2.9
Installing a domino dependency from a git repository can cause errors:
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/Mathpix/domino.git
npm ERR! [email protected]: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
It seems that for this user this problem is related to ssh access
https://docs.github.com/en/authentication/troubleshooting-ssh/error-permission-denied-publickey
To prevent this from happening we published npm package @mathpix/domino so that access to the git repository is not required.
Added to use "@mathpix/domino": "2.1.8" instead of a link to the git repository "domino": "https://github.com/Mathpix/domino.git"
1.2.16
1.2.15
What's being changed:
- Added class name
sub-tablefor nested tables to set style to remove additional white space.
mmd:
This is cool
\begin{tabular}{|c|c|c|}
\hline \begin{tabular}{c}
Class \\
interval
\end{tabular} & Frequency & \begin{tabular}{c}
Cumulative \\
frequency
\end{tabular} \\
\hline $51-55$ & 6 & 6 \\
\hline $56-60$ & 10 & 16 \\
\hline $61-65$ & 12 & 28 \\
\hline $66-70$ & 9 & 37 \\
\hline $71-75$ & 8 & 45 \\
\hline $76-80$ & 5 & 50 \\
\hline
\end{tabular} After:

1.2.14
What's being changed:
- Added
\textwidthto set width column for tabular
mmd:
### Top-aligned cells width fixed width
\begin{tabular}{p{0.1\textwidth}p{0.8\textwidth}}
\hline
First column&Second column\\
\hline
abcd&Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Etiam lobortis facilisis sem. Nullam nec mi et neque phare-
tra sollicitudin. Praesent imperdiet mi nec ante. Donec ul-
lamcorper, felis non sodales commodo, lectus velit ultrices
augue, a dignissim nibh lectus placerat pede. Vivamus nunc
nunc, molestie ut, ultricies vel, semper in, velit. Ut porttitor.
Praesent in sapien. Lorem ipsum dolor sit amet, consectetuer
adipiscing elit. Duis fringilla tristique neque. Sed interdum
libero ut metus. Pellentesque placerat. Nam rutrum augue a
leo. Morbi sed elit sit amet ante lobortis sollicitudin. Prae-
sent blandit blandit mauris. Praesent lectus tellus, aliquet
aliquam, luctus a, egestas a, turpis. Mauris lacinia lorem sit
amet ipsum. Nunc quis urna dictum turpis accumsan sem-
per.
efgh ijkl
1
\\
efgh&ijkl\\
\hline
\end{tabular}
### Middle-aligned cells width fixed width
\begin{tabular}{m{0.1\textwidth}m{0.8\textwidth}}
\hline
First column&Second column\\
\hline
abcd&Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Etiam lobortis facilisis sem. Nullam nec mi et neque phare-
tra sollicitudin. Praesent imperdiet mi nec ante. Donec ul-
lamcorper, felis non sodales commodo, lectus velit ultrices
augue, a dignissim nibh lectus placerat pede. Vivamus nunc
nunc, molestie ut, ultricies vel, semper in, velit. Ut porttitor.
Praesent in sapien. Lorem ipsum dolor sit amet, consectetuer
adipiscing elit. Duis fringilla tristique neque. Sed interdum
libero ut metus. Pellentesque placerat. Nam rutrum augue a
leo. Morbi sed elit sit amet ante lobortis sollicitudin. Prae-
sent blandit blandit mauris. Praesent lectus tellus, aliquet
aliquam, luctus a, egestas a, turpis. Mauris lacinia lorem sit
amet ipsum. Nunc quis urna dictum turpis accumsan sem-
per.
efgh ijkl
1
\\
efgh&ijkl\\
\hline
\end{tabular}
### Bottom-aligned cells with fixed width
\begin{tabular}{b{0.1\textwidth}b{0.8\textwidth}}
\hline
First column&Second column\\
\hline
abcd&Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Etiam lobortis facilisis sem. Nullam nec mi et neque phare-
tra sollicitudin. Praesent imperdiet mi nec ante. Donec ul-
lamcorper, felis non sodales commodo, lectus velit ultrices
augue, a dignissim nibh lectus placerat pede. Vivamus nunc
nunc, molestie ut, ultricies vel, semper in, velit. Ut porttitor.
Praesent in sapien. Lorem ipsum dolor sit amet, consectetuer
adipiscing elit. Duis fringilla tristique neque. Sed interdum
libero ut metus. Pellentesque placerat. Nam rutrum augue a
leo. Morbi sed elit sit amet ante lobortis sollicitudin. Prae-
sent blandit blandit mauris. Praesent lectus tellus, aliquet
aliquam, luctus a, egestas a, turpis. Mauris lacinia lorem sit
amet ipsum. Nunc quis urna dictum turpis accumsan sem-
per.
efgh ijkl
1
\\
efgh&ijkl\\
\hline
\end{tabular}

1.2.13
What's being changed:
1. Do not display a null footnote marker for the \footnotetext{} command
If the document has only the \footnotetext{} command and no commands that increase the footnote marker such as \footnote{} and \footnotemarker{}, then the footnote marker will always have the value 0
mmd:
Some text
\footnotetext{
\({ }^{*}\) Equal contribution.
}
\footnotetext{
\({ }^{0}\) Compared to V1, this draft includes better baselines, experiments on GLUE, and more on adapter latency.
}
\footnotetext{
\({ }^{1}\) While GPT-3 175B achieves non-trivial performance with few-shot learning, fine-tuning boosts its performance significantly as shown in Appendix A
}
\footnotetext{
\({ }^{*}\) Equal contribution.
\({ }^{0}\) Compared to V1, this draft includes better baselines, experiments on GLUE, and more on adapter latency.
\({ }^{1}\) While GPT-3 175B achieves non-trivial performance with few-shot learning, fine-tuning boosts its performance significantly as shown in Appendix A}Before:
After:
2. Added the ability to change the font size for footnotes.
By default, the font size for footnotes matches the document font size.
To change this behavior, set the parameter:
footnotes: {
fontSize: '85%'
}
3. Added the \blfootnotetext{} command for which the numbering will always be hidden.
Some text
\blfootnotetext{
\({ }^{*}\) Equal contribution.
\({ }^{0}\) Compared to V1, this draft includes better baselines, experiments on GLUE, and more on adapter latency.
\({ }^{1}\) While GPT-3 175B achieves non-trivial performance with few-shot learning, fine-tuning boosts its performance significantly as shown in Appendix A
}
1.2.12
Added support to underline in text mode.
- Underline text:
\underline{Underlined text!} - Underline text:
\uline{Underlined text!}
- Double underline text:
\underline{\underline{Double underlined text!}} - Double underline text:
\uuline{Double underlined text!}
- Wavy underlined text:
\uwave{This text is underlined with a wavy line!}
- Dashed underline text:
\dashuline{Dashed Underline} - Dotted underline text:
\dotuline{Dotted Underline}
- Strikethrough text:
\sout{Text with a horizontal line through its center!} - Struck with Hatching text:
\xout{Text with hatching pattern!}






