You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
The latex equation in mardown file is $$, which should be a block equation in notion.
But when I import this to notion, it is a Inline Equation.
Here is my code. It seems the code will tranform the single $ into double $$
fromnotion.clientimportNotionClientfromnotion.blockimportPageBlockimportitertoolsfrommd2notion.uploadimportupload, convert, uploadBlockfrommd2notion.NotionPyRendererimportNotionPyRenderer, addLatexExtensionfromtqdm.notebookimporttqdmimportosos.environ["http_proxy"] ="http://127.0.0.1:7890"os.environ["https_proxy"] ="http://127.0.0.1:7890"# Follow the instructions at https://github.com/jamalex/notion-py#quickstart to setup Notion.pyclient=NotionClient(
token_v2="")
page=client.get_block(
"")
withopen("text.md", "r", encoding="utf-8") asmdFile:
newPage=page.children.add_new(PageBlock, title="XGBoost")
lines=mdFile.readlines()
rendered=convert(lines, addLatexExtension(NotionPyRenderer))
forblockDescriptorintqdm(rendered):
uploadBlock(blockDescriptor, newPage, mdFile.name)
The text was updated successfully, but these errors were encountered:
The latex equation in mardown file is $$, which should be a block equation in notion.
But when I import this to notion, it is a Inline Equation.
Here is my code. It seems the code will tranform the single $ into double $$
The text was updated successfully, but these errors were encountered: