sillsdev / docu-notion

Download Notion pages as markdown and image files, preserving hierarchy and enabling workflow properties. Works with Docusaurus.
MIT License
159 stars 30 forks source link

Latex Rendering Problem #68

Closed enfycius closed 1 year ago

enfycius commented 1 year ago

Problem

Bug

Latex code is not properly rendered. For example, if you enter the following code "$$x$$", this code is only converted to "x".

Solution

But, I solved this problem myself. First, you must modify the existing version of notion-to-md package to the latest version "3.1.1". (23.08.13)

Second, the existing return statements of the doNotionToMarkdown function in the transforms.js file have to modified to return markdown.parent;

hatton commented 1 year ago

@enfycius Do you want to make a PR? The main thing is to ensure that the notion-to-md doesn't break anything. It would be great if your PR could add a unit test for Latext rendering.

enfycius commented 1 year ago

Sure. It's an honor for me to make a PR.