Giter VIP home page Giter VIP logo

Comments (5)

yanyanlongxia avatar yanyanlongxia commented on July 24, 2024 1

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?

from nextjs-notion-starter-kit.

transitive-bullshit avatar transitive-bullshit commented on July 24, 2024

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.

from nextjs-notion-starter-kit.

transitive-bullshit avatar transitive-bullshit commented on July 24, 2024

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

from nextjs-notion-starter-kit.

transitive-bullshit avatar transitive-bullshit commented on July 24, 2024

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?

from nextjs-notion-starter-kit.

yanyanlongxia avatar yanyanlongxia commented on July 24, 2024

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

from nextjs-notion-starter-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.