Added using of env.mmd_footnotes instead of env.footnotes
Added inline ruler2 to grab footnote_ref token
md.inline.ruler2.push("grab_footnote_ref", grab_footnote_ref);
These changes allow the list of footnotes env.mmd_footnotes containing latex footnotes and MD footnotes to be synchronized.
However, we do not disable the rules for markdown-it-footnotes.
The list of footnotes is now built once and uses env.mmd_footnotes.
Synchronization of latex footnotes and MD footnotes.
\footnote[5]{should be 5}
\footnote{should be 1}
\title{Title[^1]}
[^1]: footnote text
In Snip, You can use the `\title{}` command wherever you want the title to appear in your document. If pasting LaTeX code into Snip, please note that the `\maketitle` command will be ignored.
\author{Author[^1]}
\author{Author\\can also be\\multiline}
\author{
First[^1]Last\\
Department\\
school\\
email@edu
\and
First Last[^1]\\
...
}
\footnote{should be 3}
\begin{abstract}
[^1] footnote
This is the abstract to my paper. You are going to learn a lot in this paper, just you wait. I am going to tell you about all the different LaTeX and Markdown syntax you can use in Snip.
\end{abstract}
2. Fixed rendering for [[mmd] Note can't be converted to DOCX because of \textbf inside \begin{itemize} #5452]
\textbf{Rubric:}
\begin{itemize}
\item \textbf{2 marks:} For clearly stating the assumptions and initiating the proof by contradiction.
\item \textbf{1 mark:} For showing the relationship between \( d \), \text{HCF}( b, r ) and the prime factorizations of \( a \) and \( b \).
\item \textbf{2 marks:} For successfully proving that the assumption leads to a contradiction with the Fundamental Theorem of Arithmetic using the prime factorization method.
\end{itemize}
branch: dev/olga/5436-Duplicate-list-of-footnotes
Why
Fixed issues:
What's being changed:
1. [mmd] Duplicate list of footnotes #5436
env.mmd_footnotes
instead ofenv.footnotes
footnote_ref
tokenmd.inline.ruler2.push("grab_footnote_ref", grab_footnote_ref);
These changes allow the list of footnotes
env.mmd_footnotes
containing latex footnotes and MD footnotes to be synchronized. However, we do not disable the rules formarkdown-it-footnotes
. The list of footnotes is now built once and usesenv.mmd_footnotes
.Synchronization of latex footnotes and MD footnotes.
2. Fixed rendering for [[mmd] Note can't be converted to DOCX because of \textbf inside \begin{itemize} #5452]
mmd:
mmd: