dragonman225 / notablog

Tell stories of your work with Notion
https://dragonman225.js.org/notablog.html
MIT License
665 stars 79 forks source link

Support for Inline Math #9

Closed vwxyzjn closed 3 years ago

vwxyzjn commented 4 years ago

The inline math is finally supported in notion https://www.notion.so/What-s-New-157765353f2c4705bd45474e5ba8b46c.

However, when rendering the with notablog, the inline math is not rendered properly

image

image

dragonman225 commented 4 years ago

Yeah, it is not yet supported. Fortunately, Notablog is supporting the math block, maybe we can take ideas from there, then find out how Notion encode the math string, and add the rendering logic to this big switch-case.

yongzx commented 3 years ago

@vwxyzjn @dragonman225 Create a hack to fix the issue: https://github.com/yongzx/notablog-fix-math-inline Basically, I export the HTML file from Notion itself and transfer the relevant spans for inline-math blocks to the Notablog HTML file.

dragonman225 commented 3 years ago

Cool! And thanks for reminding me of this issue, I looked into it again and found out it wasn't too hard to fix, I'll probably release a new version in a few days when I fix other bugs I found recently.

dragonman225 commented 3 years ago

Inline math is supported in v0.5.0 or higher!