Playground
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Bold text
Italic text
Bold and italic text
Strikethrough text
Marked text
H2O
10-11
- Bullet point 1
- Bullet point 2
- Bullet point 3
- Numbered item 1
- Numbered item 2
- Numbered item 3
Column 1 | Column 2 |
---|---|
Cell 1 | Cell 2 |
Blockquote
def hello_world():
print("Hello world!")
def highlighted_method():
a = 100 ^ 2.0
b = 1 / a
print(b)
def with_linenums_starting_at_2():
print("The Peano Axioms!")
Line text inline code
line text #!python def inline_code_block()
[1] line text
Footnote[2]
提示
This cheatsheet is migrated from the deprecated site.
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
**Bold text**
_Italic text_
**_Bold and italic text_**
~~Strikethrough text~~
==Marked text==
H~2~O
10^-11^
[Link](https://google.com)
---
- Bullet point 1
- Bullet point 2
- Bullet point 3
---
1. Numbered item 1
2. Numbered item 2
3. Numbered item 3
---
- [x] Task 1
- [ ] Task 2
- [ ] Task 3
---
| Column 1 | Column 2 |
| -------- | -------- |
| Cell 1 | Cell 2 |
---
> Blockquote
```python{4-7}:no-line-numbers
def hello_world():
print("Hello world!")
def highlighted_method():
a = 100 ^ 2.0
b = 1 / a
print(b)
```
```python:line-numbers=2
def with_linenums_starting_at_2():
print("The Peano Axioms!")
```
Line text `inline code` line text `#!python def inline_code_block()`[^inline_syntax_highlight] line text
[^inline_syntax_highlight]: Inline syntax highlighting is not supported yet.
$E = mc^2$
Footnote[^footnote]
[^footnote]: Footnote text
::: tip
This cheatsheet is migrated from [the deprecated site](https://github.com/KrLite/BrokenThoughts/blob/main/docs/cheatsheet.md?plain=1).
This is a highlighted text.
This is a text with highlighted sections.
Highlighted text in bold.
Highlighted text in italic.
Highlighted text in bold and italic.
This is a ==highlighted text.==
Th==is is a te==xt with high==lighted secti==ons.
**==Highlighted text in bold.==**
_==Highlighted text in italic.==_
_**==Highlighted text in bold and italic.==**_
[Link](https://www.google.com)
**[Bold link](https://www.google.com)**
_[Italic link](https://www.google.com)_
==[Highlighted link](https://www.google.com)==
[Highlighted ==link text==](https://www.google.com)
function hello_world() {
console.log("Hello, world!");
}
A simple code block with no line numbers.
注
Code within a note block.
Highlighted text within a note block.
相关信息
Code within a info block.
Highlighted text within a info block.
提示
Code within a tip block.
Highlighted text within a tip block.
注意
Code within a warning block.
Highlighted text within a warning block.
警告
Code within a caution block.
Highlighted text within a caution block.
Font Ligature Test
a -> b -> c
// Stream API Example
import java.util.stream.Stream;
public class StreamExample {
public static void main(String[] args) {
Stream.of("apple", "banana", "orange")
.filter(fruit -> fruit.length() > 5)
.sorted()
.forEach(System.out::println);
}
}