This posts is just me testing out some features that I can add to future blog posts.

Simple stuff

lists

  • item 1
  • item 2

numbered lists

  1. corgi
  2. shibainu

code

Syntax highlighting for code blocks for different languages

#include <iostream>

int main(int argc, char* argv[]){
  
  std::string name;

  std::cout << "What's your name? ";
  std::cin >> name;
  std::cout << "Hi, " << name << std::endl;

  return 0;
  }
import sys

def main(argv):
  print("Hello")

if __name__ == '__main__':
  main(sys.argv)

math

Math display and support uses MathJax3.

\begin{aligned} \nabla \cdot \mathbf{E} &= \frac {\rho} {\varepsilon_0} \newline \nabla \cdot \mathbf{B} &= 0 \newline \nabla \times \mathbf{E} &= - \frac{\partial\mathbf{B}}{\partial{t}} \newline \nabla \times \mathbf{B} &= \mu_0\left(\mathbf{J} + \varepsilon_0 \frac{\partial \mathbf{E}} {\partial t} \right) \label{eq:maxwell} \end{aligned}

MathJax will automatically number equations:

\begin{equation} \label{eq:cauchy-schwarz} \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) \end{equation}

We can also refer to \eqref{eq:cauchy-schwarz} in text.

figures and images

simple embed

zoomable

mermaid diagrams

JohnAliceHello John, how are you?Great!JohnAlice