nteract / semiotic

A data visualization framework combining React & D3
https://semioticv1.nteract.io/
Other
2.43k stars 133 forks source link

Move sparklines guide to mdx #620

Closed alexeyraspopov closed 2 years ago

alexeyraspopov commented 2 years ago

I'll try to slowly move all existing guides to MDX, starting from the pages that are currently broken on semiotic.nteract.io. Sparklines is the first one.

There is a small detail about this particular guide that we need to keep in mind. In MDX version of it, using JSX elements right in the text (to make use of sparklines) may sometimes add a line break because of Prettier. The only way to avoid it (other than trying to rephrase the guide) is to put   between the inline element and the word before it. The root cause is the fact I use prose wrap which helps keeping some readable print width when working with text.

vercel[bot] commented 2 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/nteract/semiotic/Uif9uV7Ue1NkoquqYZpEvzB82j4g
✅ Preview: https://semiotic-git-sparklinesguidemdx-nteract.vercel.app