Astro Demo
This is a demo of some of the Astro features available to this website.
#Generate the Table of Contents
## Table of Contents
#Table of Contents
#1# Header
In this website, it should not be used because it conflicts with the page’s existing <h1>
.
#2# Header
#3# Header
#4# Header
#5# Header
#6# Header
#Footnotes w/ Return
First footnote[^1] and second footnote.[^2]
[^1]: ["First"](https://astro.build)
[^2]: ["Second"](https://astro.build)
First footnote1 and second footnote.2
#Table
| One | Two | Three |
| --- | --- | ----- |
| A | B | C |
| D | E | F |
One | Two | Three |
---|---|---|
A | B | C |
D | E | F |
#Math
#Inline
$$
\mathrm{e} = \sum_{n=0}^{\infty} \dfrac{1}{n!}
$$
#Code Block
```math
\mathrm{e} = \sum_{n=0}^{\infty} \dfrac{1}{n!}
```
#LibertinusKeyboard Ligatures
To get to the menu, type <span class="keyboard">Ctrl</span> + <span class="keyboard">3</span>
<span class="keyboard">Ctrl Enter Shift Space + </span>
To get to the menu, type Ctrl + 3
Ctrl Enter Shift Space +
#Mermaid
```mermaid
graph TB
sq[Square shape] --> ci((Circle shape))
subgraph A
od>Odd shape]-- Two line<br/>edge comment --> ro
di{Diamond with <br/> line break} -.-> ro(Rounded<br>square<br>shape)
di==>ro2(Rounded square shape)
end
%% Notice that no text in shape are added here instead that is appended further down
e --> od3>Really long text with linebreak<br>in an Odd shape]
%% Comments after double percent signs
e((Inner / circle<br>and some odd <br>special characters)) --> f(,.?!+-*ز)
cyr[Cyrillic]-->cyr2((Circle shape Начало));
classDef green fill:#9f6,stroke:#333,stroke-width:2px;
classDef orange fill:#f96,stroke:#333,stroke-width:4px;
class sq,e green
class di orange
```
Loading graph...
graph TB sq[Square shape] --> ci((Circle shape)) subgraph A od>Odd shape]-- Two line<br/>edge comment --> ro di{Diamond with <br/> line break} -.-> ro(Rounded<br>square<br>shape) di==>ro2(Rounded square shape) end %% Notice that no text in shape are added here instead that is appended further down e --> od3>Really long text with linebreak<br>in an Odd shape] %% Comments after double percent signs e((Inner / circle<br>and some odd <br>special characters)) --> f(,.?!+-*ز) cyr[Cyrillic]-->cyr2((Circle shape Начало)); classDef green fill:#9f6,stroke:#333,stroke-width:2px; classDef orange fill:#f96,stroke:#333,stroke-width:4px; class sq,e green class di orange
#Semantic Blockquote & Cite
> "Semantic \<blockquote\> & \<cite\>"
>
> <cite>Jean Ralphio, On Grapes</cite>
“Semantic <blockquote> & <cite>”
Jean Ralphio, On Grapes
#Semantic Aside
Inspired by GitHub.
> [!NOTE]
> Hello
>
> <br>
>
> newline with gap!
>
> [!TIP]
> Hello
>
> newline
> without gap.
> [!IMPORTANT]
> Important
>
> [!WARNING]
> Warning
> [!CAUTION]
> Caution
#Images

#Code Block Tab Sizes Adapt for Mobile
Tabs = 4 normally, but tabs = 2 for narrower viewing.
fn main() {
let number = 13;
// TODO ^ Try different values for `number`
println!("Tell me about {}", number);
match number {
// Match a single value
1 => println!("One!"),
// Match several values
2 | 3 | 5 | 7 | 11 => println!("This is a prime"),
// TODO ^ Try adding 13 to the list of prime values
// Match an inclusive range
13..=19 => println!("A teen"),
// Handle the rest of cases
_ => println!("Ain't special"),
// TODO ^ Try commenting out this catch-all arm
}
let boolean = true;
// Match is an expression too
let binary = match boolean {
// The arms of a match must cover all the possible values
false => 0,
true => 1,
// TODO ^ Try commenting out one of these arms
};
println!("{} -> {}", boolean, binary);
}
#Footnotes
© 2020 by JP Hutchins. Published under a Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) license.