Skip to content

Releases: Mathpix/mathpix-markdown-it

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

1.2.10

25 Aug 07:16
007abed
Compare
Choose a tag to compare

Footnotes

The \footnote command

The \footnote command is the core LaTeX command for creating footnotes and takes two forms:

  • \footnote{text for footnote}: This inserts an (automatically-generated) superscript number, called the footnote marker, into the document text and also creates the corresponding footnote at the bottom of the page, containing the corresponding footnote marker and text for footnote.
  • \footnote[number]{text for footnote}: This form of the command uses the optional value number to create the superscript footnote marker; it also inserts the corresponding footnote at the bottom of the page, containing the identifying footnote marker (number) and text for footnote.

Example: using the \footnote command

Here is an example which demonstrates the two variants of \footnote:

  • \footnote{Automatically generated footnote markers work fine!} automatically typesets the numeric (superscript) value (1) for the footnote marker, whereas
  • \footnote[42]{...is that the answer to everything?} uses 42 as the value of the footnote marker and, as you may observe, it does not increment the integer used for auto-creation of markers: the third footnote has a marker value of 2.
I'm writing to demonstrate use of automatically-generated footnote markers\footnote{Automatically generated footnote markers work fine!} and footnotes which use a marker value provided to the command\footnote[42]{...is that the answer to everything?}. 

Now, I will use another automatically-generated footnote marker\footnote{Now, footnote markers are 1, 42, but then back to 2? That will be confusing if the automatically-generated number also reaches 42!}.

This example produces the following output:

The \footnotemark and \footnotetext commands

In addition to \footnote, LaTeX provides the commands:

  • \footnotemark which typesets the footnote marker, and
  • \footnotetext which typesets the footnote text

Both commands take an optional argument enclosed in square brackets ([...]):

  • \footnotemark[number]: typesets a footnote marker at the point the command is used but does not create/typeset a corresponding footnote at the bottom of the page.

    • [number] is the optional argument, specifying that the value number should be used for the footnote marker.
    • If you use this command without the optional argument, writing it as \footnotemark, this form of the command generates the footnote marker using an internal LaTeX variable called a counter variable—which is incremented by 1 when the optional number value is not provided.
  • \footnotetext[number]{text for footnote}: typesets the footnote text (text for footnote) corresponding to the marker produced by the previous \footnotemark.

    • [number] is the optional argument which specifies the corresponding footnote marker for the text for footnote.
    • If you use this command without the optional number argument, i.e. writing it as \footnotetext{text for footnote}, this form of the command generates a footnote whose marker corresponds to the most recent \footnotemark.

Example: using \footnotemark and \footnotetext

The \footnotemark and \footnotetext commands are often used together to construct footnotes in tables, or other locations, where the standard \footnote command does not work, or is not the best/optimal solution.

I'm writing to test the `\footnotemark` and `\footnotetext` commands. 
You can insert a footnote marker using the `\footnotemark`\footnotemark{}
command and later, when you're ready, typeset the footnote text by writing 
`\footnotetext{Here's the footnote.}`. \footnotetext{Here's the footnote.}

Let's do one more to see the result\footnotemark{} which I'll comment on within the
footnote\footnotetext{Specifically, I'd write comments in this one.}.

This example produces the following output:

1.2.7

11 Aug 09:59
862d2f0
Compare
Choose a tag to compare
  1. Fixed:
    Calling state.md.inline.parse inside a block rule prevents inline rules from being processed correctly. Because of this, the footnote is not generated.
    First, all block rules must be processed. Including the footnote_def rule for initialization.

Before:
Screen Shot 2023-08-11 at 11 11 02

After:
Screen Shot 2023-08-11 at 11 14 45

  1. Fixed rendering inline footnote:

Before:
Screen Shot 2023-08-11 at 11 17 22

After:
Screen Shot 2023-08-11 at 11 17 38