NickyMeuleman / nicky-blog

https://nickymeuleman.netlify.app/
GNU General Public License v3.0
14 stars 6 forks source link

Fix style tags used in mdx #168

Closed NickyMeuleman closed 1 year ago

NickyMeuleman commented 1 year ago

Since mdx v2, you have to write style tags with JavaScript syntax in .mdx files. The HTML style will fail.

example before: <div style="font-size: 1rem">BOOP</div>

example after: <div style={{fontSize: "1rem"}}>BOOP</div>

This happens on /garden/concurrent-vs-parallel and causes an error. That file is in data/garden/concurrent-vs-parallel/index.mdx