Sample Blog Post with Math and Code

This is a sample blog post demonstrating the various features supported in our blog.

Math Equations

Here’s an inline equation: E=mc2E = mc^2

And a display equation:

fx=limh0f(x+h)f(x)h\frac{\partial f}{\partial x} = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}

Code Blocks

Here’s a Python code block with syntax highlighting:

def factorial(n: int) -> int:
    """Calculate the factorial of n"""
    if n <= 1:
        return 1
    return n * factorial(n - 1)

# Example usage
print(factorial(5))  # Output: 120

GFM Features

Tables

FeatureSupported
Math
Code
Tables

Task Lists

  • Add math support
  • Add code highlighting
  • Add table of contents
  • Add more features

This post was created using Astro!