Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I use equation blocks? #37

Closed
yanyanlongxia opened this issue Feb 1, 2021 · 5 comments
Closed

How do I use equation blocks? #37

yanyanlongxia opened this issue Feb 1, 2021 · 5 comments

Comments

@yanyanlongxia
Copy link

Can you add support for equations?

Like this page. It should look like this , but there is nothing. This looks like a mistake in the equation.

@transitive-bullshit
Copy link
Owner

transitive-bullshit commented Feb 1, 2021

Hey @yanyanlongxia, equations are supported but you need to opt into using them because Katex is a heavyweight dependency.

See my answer here: NotionX/react-notion-x#20

Let me know if you think this should be enabled by default and if you run into any issues getting it to work.

@transitive-bullshit transitive-bullshit changed the title About equation How do I use equation blocks? Feb 1, 2021
@yanyanlongxia
Copy link
Author

Thank you very much, it works!. I think this should be enabled by default because equation is an important element of Notion, especially for students.

By the way, does this project support sitemap?

@transitive-bullshit
Copy link
Owner

Awesome -- I'll look into adding equation support by default. The key is to keep it lazy loaded so it doesn't add anything to pages which don't use equations.

Sitemaps aren't supported yet (you can add a manual one to public/sitemap.xml), but I'll be adding sitemap soon in #39

@transitive-bullshit
Copy link
Owner

I just updated the default to have equations enabled by default (but loaded via next/dynamic).

I still think you should opt into adding the Katex CSS since that's harder to lazy load. What do you think?

@yanyanlongxia
Copy link
Author

Yes, lazy load is also necessary since we often use a lot of equations.

Ashinch pushed a commit to Ashinch/nextjs-notion-starter-kit that referenced this issue Jul 4, 2021
fixed width for columns in browsers such as safari
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants