Releases: Mathpix/mathpix-markdown-it
1.3.0
- Updated react@18.2.0
- 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://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
1.2.15
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}
After:
1.2.14
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}
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!}
1.2.11
1.2.10
- Added support for LaTeX commands
\footnote
,\footnotemark
,\footnotetext
https://www.overleaf.com/learn/latex/Footnotes#The_.5Cfootnotemark_and_.5Cfootnotetext_commands
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
- 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.
- Fixed rendering inline footnote: