Skip to content

Releases: Mathpix/mathpix-markdown-it

2.0.0

20 Aug 09:06
4f5da3e
Compare
Choose a tag to compare

Updated MathJax@3.2.2

Fixes:

1. MathJax@3.0.1 the location of n-th root numbers is weird

Latex: $\sqrt[4]{3 \cdot 3 \cdot 3 \cdot 3}=?$

Before:
Screenshot 2024-07-30 at 11 42 57

After:

Screenshot 2024-07-30 at 11 43 15

2. Underline using html tag "<u>" does not support? #336

Screenshot 2024-08-07 at 10 56 05

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

05-ezgif com-video-to-gif-converter (1)

5. Formulas do not shrink when the screen is reduced

Before:

Screenshot 2024-08-14 at 14 34 47

After:

Screenshot 2024-08-14 at 14 36 25

6. Added cases MathJax package to support numcases environment.

Screenshot 2024-08-07 at 10 59 26

1.3.6

15 May 18:33
edf6433
Compare
Choose a tag to compare

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

17 Feb 08:19
cd4cf09
Compare
Choose a tag to compare
Screenshot 2024-02-17 at 10 14 44

1.2.9

14 Nov 15:18
8182be0
Compare
Choose a tag to compare

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://git@github.com/Mathpix/domino.git
npm ERR! git@github.com: 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

17 Oct 15:36
f656e8a
Compare
Choose a tag to compare

Fixes style for code block in VS Code

Screen Shot 2023-10-17 at 18 07 58

1.2.15

17 Oct 04:53
d2dd62f
Compare
Choose a tag to compare

What's being changed:

  • Added class name sub-table for 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} 

Before:
Screen Shot 2023-10-16 at 13 24 37

After:

Screen Shot 2023-10-16 at 13 25 05

1.2.14

12 Oct 08:41
7b0e125
Compare
Choose a tag to compare

What's being changed:

  • Added \textwidth to 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}
Screen Shot 2023-10-10 at 13 57 32 Screen Shot 2023-10-10 at 13 57 53 Screen Shot 2023-10-10 at 13 58 12

1.2.13

22 Sep 14:26
75e0d7b
Compare
Choose a tag to compare

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:

Screen Shot 2023-09-22 at 10 54 29

After:

Screen Shot 2023-09-22 at 10 52 30

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%'
  }
Screen Shot 2023-09-19 at 16 53 56

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
}
Screen Shot 2023-09-19 at 16 58 21

1.2.12

11 Sep 10:21
8a5f125
Compare
Choose a tag to compare

Added support to underline in text mode.

  • Underline text: \underline{Underlined text!}
  • Underline text: \uline{Underlined text!}
Screen Shot 2023-06-22 at 15 21 07
  • Double underline text: \underline{\underline{Double underlined text!}}
  • Double underline text: \uuline{Double underlined text!}
Screen Shot 2023-06-22 at 15 21 15
  • Wavy underlined text: \uwave{This text is underlined with a wavy line!}
Screen Shot 2023-06-22 at 15 21 21
  • Dashed underline text: \dashuline{Dashed Underline}
  • Dotted underline text: \dotuline{Dotted Underline}
Screen Shot 2023-06-22 at 15 21 28
  • Strikethrough text: \sout{Text with a horizontal line through its center!}
  • Struck with Hatching text: \xout{Text with hatching pattern!}
Screen Shot 2023-06-22 at 15 21 34

1.2.11

28 Aug 14:52
0fc0ee6
Compare
Choose a tag to compare
  • The parsing rule for \refs{} and \eqrefs{} has been moved to a separate rule. This is done to be able to disable this rule.
  • Added option isDisableRefs to disable refs rules.
  • Added option isDisableFootnotes to disable footnotes rules.
Screen Shot 2023-08-25 at 15 34 08