janniks / vue-notion

A fast Vue renderer for Notion pages
https://vue-notion.now.sh
Other
883 stars 63 forks source link

Add equation block support & code fallback #60

Closed dyllan-to-you closed 3 years ago

dyllan-to-you commented 3 years ago

Add katex flag to enable katex usage

Add support for equation blocks, which falls back to prism or code rendering if katex isn't enabled

Added code fallback for inline equations if katex isn't enabled

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/janniks/vue-notion/2hAnH1F6R7WNfrW4mGbv6WQmcZX1
✅ Preview: https://vue-notion-git-fork-dyllan-to-yu-main-janniks.vercel.app

janniks commented 3 years ago

Good ideas, I'll take a full look tomorrow

janniks commented 3 years ago

Looks great — I have a minor edit: https://github.com/dyllan-to-yu/vue-notion/pull/1 that I believe should be included. After that this can be merged 😊

dyllan-to-you commented 3 years ago

It looks good to me! That use for dynamic loading isn't one that's crossed my mind before! I've merged your MR