Maths and CodePen Embeds
A sample post showing KaTeX equations and an embedded CodePen.
1 min read
Posts can include equations, written in TeX, and live demos from CodePen. Both work with nothing more than Markdown.
Maths#
Wrap inline maths in single dollar signs: the area of a circle is , and Euler’s identity is .
Put display maths on its own lines between double dollar signs:
Wide equations scroll sideways on small screens:
CodePen#
Paste a link to a pen on a line of its own and it becomes an embed that follows light and dark mode:
A CodePen link inside a sentence, like this one, stays a normal link.