Cobertos / md2notion

A better Notion.so Markdown importer
MIT License
654 stars 65 forks source link

LaTeX equation parsing error #33

Closed Theigrams closed 3 years ago

Theigrams commented 3 years ago

I use this code to upload my file:

with open("a.md", "r", encoding="utf-8") as mdFile:
    newPage = page.children.add_new(PageBlock, title="TestMarkdown Upload")
    upload(mdFile, newPage, notionPyRendererCls=addLatexExtension(NotionPyRenderer))

And my file a.md is that:

$\phi\left(v_{i, l}\right)=\mathbf{R}_{i} v_{i, l}+t_{i}$

$$
P\left(v_{i, l}\right)=\sum_{j \neq i}^{M} \frac{1}{M^{\prime}} \mathcal{N}\left(\mathbf{R}_{i} v_{i, l}+t_{i} ; \mathbf{R}_{j} v_{j, c(j, l)}+t_{j}, \Sigma\right)
$$

It shows in typora: image

But in Notion, the subscript _ seems to be parsed as * or null image

Cobertos commented 3 years ago

Same as #31, I will look at tonight

Cobertos commented 3 years ago

Closing as duplicate, working on in #31