md2notion_api_version icon indicating copy to clipboard operation
md2notion_api_version copied to clipboard

Some bug fixed...

Open TooSchoolForCool opened this issue 2 years ago • 0 comments

  • Fix the trailing empty line between paragraph and equation block.
  • Fix the Math equation broken issue.
    • Trailing whitespace after \\ leads to error parsing.
    • Incorrectly recognize emphasize annotation in Equation block.
  • Handling the exception when uploading a file url.

Try following simple markdown to test your code.

A trailing whitespace after `\\` leads to error
$$
E = mc^2 \\ 
F = ma
$$

Below is an example of incorrectly recognizing emphasize annotation in Equation block.
$$
\text{ratio}_k = \frac{\sum_{i=1}^k \lambda_i}{\sum_{i=1}^n \lambda_i}
$$
This is a local [PDF](./assets/test.pdf).

Note that there is a trailing whitespace at the end of the first equation block (i.e., mc^2 \\ <whitespace>\n).

TooSchoolForCool avatar Jul 25 '23 03:07 TooSchoolForCool