I've been using markdown for my University notes for awhile now, and ive been using more and more math equations with KaTeX.
Ive come across an issue using VScode as my external editor (I use VScode for large/complex multi-line editing and large Regex search&replace). When I open a note that has the \rightarrow
element in a math equation, every \r
is replaced with a newline.
For example:
$V_f = V_s = I_f R_f \rightarrow \text{KVL}$
gets replaced with
$V_f = V_s = I_f R_f
ightarrow \text{KVL}$
This seems to be a bug on the Joplin side since it occurs when I use Notepad++ as my external editor as well.
I know Unix-style line endings (\n
) and DOS line ending (\r\n
) are different, But neither are \r
on its own, so this seems to me like a regex issue somewhere in the file watching service.
Interested for a Joplin developer's opinion on this issue, and would love to get it fixed!
Steps for Reproducing:
- Create a note with a formula containing a
\rightarrow
# Example note $$ f(x) = x^2 + 2x + 3 \rightarrow \text{Standard Quadratic Equation} $$
- Open the file in External Editor
- Make any changes and save
- Open again Joplin
- Observe the
\r
has been replaced with a newline
Joplin Version: v1.3.18
OS: Windows 10 - 19041
External Editor: VSCode(v1.51.1) & Notepad++ (v7.9)