KateX in MDX
Let’s start with some fancy KateX to see if I can get math equations working on this page. Here the famous Einstein equation describing the equivalence of mass and energy:
Here is a more complex formula using the aligned environment explaining transmittance using the Power-series expansion and control variates:
Phew, glad this is working 😄!
Code blocks in MDX
Let’s see if we can write some fancy syntax-highlighted code blocks in MDX. Here is a python example:
def main(name):
print(f'Hello, {name}!')
The theme I am using is catppuccin-latte
for the light theme and catppuccin-macchiato
for the dark theme. So far so good! In
the future, this post will be edited to include more examples of MDX features. Stay tuned!