Markdown examples
This post showcases some examples of Markdown formatting, including a table, code blocks and tags, quotes, tables, and footnotes. $\KaTeX$ is a fast and easy-to-use library that enables the rendering of mathematical notation, using LaTeX syntax. You can use $\KaTeX$ inline by wrapping the expression between For example, To display the expression on its own line and centered, wrap it around For example, To activate $\KaTeX$ for a post or an entire section, include You may enable it globally as well, by setting For enhanced performance and security, the $\KaTeX$ JavaScript, CSS, and fonts are hosted locally. Note: After enabling $\KaTeX$, if you want to use $ without rendering a mathematical expression, escape it with a single backslash: Here’s an example of a table1. Its colours change depending on the current theme. In Rust, you declare a mutable variable with “We’re all hurtling towards death. Yet here we are, for the moment, alive. Each of us knowing we’re going to die. Each of us secretly believing we won’t.” — Charlie Kaufman, Synecdoche, New York $\KaTeX$
$
or between \\(
and \\)
.$ \sin(x) = \sum_{n=0}^{\infty} \frac{(-1)^n}{(2n + 1)!} x^{2n + 1} $
would render: $ \sin(x) = \sum_{n=0}^{\infty} \frac{(-1)^n}{(2n + 1)!} x^{2n + 1} $$$
or between \\[
and \\]
.\\[ r = \frac{\sum_{i=1}^{n}(x_i - \bar{x})(y_i - \bar{y})}{\sqrt{\sum_{i=1}^{n}(x_i - \bar{x})^2}\sqrt{\sum_{i=1}^{n}(y_i - \bar{y})^2}} \\]
renders: \[ r = \frac{\sum_{i=1}^{n}(x_i - \bar{x})(y_i - \bar{y})}{\sqrt{\sum_{i=1}^{n}(x_i - \bar{x})^2}\sqrt{\sum_{i=1}^{n}(y_i - \bar{y})^2}} \]katex = true
within the [extra]
section of the front matter. For exemple:= "Testing KaTeX"
= 2002-11-30
[]
= true
katex = true
in the [extra]
section of your config.toml
.\$
. Table
Symbol Element Atomic Number H Hydrogen 1 C Carbon 6 Fe Iron 26 Au Gold 79 Code Block
With line numbers
1 use HashMap;
2
3
4 5 6 7 8
9
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Code tags
let mut x = 5;
, whereas in Python, you simply use x = 5
. Similarly, to print a value in Rust, you would use println!("Value: {}", x);
, but in Python, it’s as straightforward as print(f"Value: {x}")
. Quote