Content tabs

This commit is contained in:
Cat Tom 2024-07-24 18:42:59 +08:00
parent e2ce9434a8
commit 5364ae67e5
2 changed files with 55 additions and 1 deletions

View File

@ -65,4 +65,57 @@ def bubble_sort(items):
items[j], items[j + 1] = items[j + 1], items[j] items[j], items[j + 1] = items[j + 1], items[j]
``` ```
When InlineHilite is enabled, syntax highlighting can be applied to inline code blocks by prefixing them with a shebang, i.e. `#!`, directly followed by the corresponding language shortcode. When InlineHilite is enabled, syntax highlighting can be applied to inline code blocks by prefixing them with a shebang, i.e. `#!`, directly followed by the corresponding language shortcode.
The `#!python range()` function is used to generate a sequence of numbers.
The `#!python range()` function is used to generate a sequence of numbers.
=== "C"
``` c
#include <stdio.h>
int main(void) {
printf("Hello world!\n");
return 0;
}
```
=== "C++"
``` c++
#include <iostream>
int main(void) {
std::cout << "Hello world!" << std::endl;
return 0;
}
```
=== "Unordered list"
* Sed sagittis eleifend rutrum
* Donec vitae suscipit est
* Nulla tempor lobortis orci
=== "Ordered list"
1. Sed sagittis eleifend rutrum
2. Donec vitae suscipit est
3. Nulla tempor lobortis orci
!!! example
=== "Unordered List"
``` markdown
* Sed sagittis eleifend rutrum
* Donec vitae suscipit est
* Nulla tempor lobortis orci
```
=== "Ordered List"
``` markdown
1. Sed sagittis eleifend rutrum
2. Donec vitae suscipit est
3. Nulla tempor lobortis orci
```

View File

@ -22,6 +22,7 @@ theme:
- search.highlight - search.highlight
- content.code.copy - content.code.copy
- content.code.annotate - content.code.annotate
- content.tabs.link
palette: palette:
primary: blue grey primary: blue grey
accent: light blue accent: light blue