You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.1 KiB
68 lines
1.1 KiB
2 years ago
|
---
|
||
|
title: A subfile!
|
||
2 years ago
|
language: "cs"
|
||
2 years ago
|
---
|
||
2 years ago
|
I am a little piece of content
|
||
|
|
||
|
# With a title!
|
||
|
|
||
|
And things...
|
||
|
|
||
2 years ago
|
:::{if=cat}
|
||
|
|
||
|
:::
|
||
|
|
||
2 years ago
|
``` {.python .run}
|
||
|
# I set my own flags!
|
||
2 years ago
|
ctx.set_flag("cat", True)
|
||
2 years ago
|
```
|
||
|
|
||
2 years ago
|
``` {.python .run}
|
||
|
println(f"The subdocument's title is \n\n# {ctx.get_metadata('title')}")
|
||
|
println()
|
||
|
println(f"The subdocument's subtitle is \n\n## {ctx.get_metadata('subtitle')}")
|
||
|
```
|
||
|
|
||
2 years ago
|
``` {.python .run}
|
||
|
ctx.set_metadata("language", "cs")
|
||
|
```
|
||
|
|
||
2 years ago
|
Tak toto je "v prádelně" pánové!
|
||
|
|
||
|
``` {.python .run}
|
||
|
ctx.set_metadata("language", "en")
|
||
|
```
|
||
|
|
||
|
This is "in a laundry room" gentlemen!
|
||
|
|
||
2 years ago
|
|
||
|
``` {.python .run}
|
||
|
ctx.unset_metadata("language")
|
||
|
```
|
||
|
|
||
|
I am a duck.
|
||
|
|
||
2 years ago
|
:::{if=cat}
|
||
|
This should be only shown to included cats.
|
||
|
:::
|
||
2 years ago
|
|
||
2 years ago
|
|
||
|
$$
|
||
|
\def\eqalign#1{NO, just, nooooo}
|
||
|
\eqalign{}
|
||
|
$$
|
||
2 years ago
|
|
||
|
|
||
|
![This is a figure, go figure...](logo.svg){width=25%}
|
||
|
|
||
|
![This is a figure, go figure...](logo.pdf){width=50%}
|
||
|
|
||
|
![This is a figure, go figure...](logo.jpg){width=50%}
|
||
|
|
||
|
![This is a figure, go figure...](logo1.png){width=10em}
|
||
|
|
||
|
![Fakt epesní reproduktor](reproduktor.jpeg){width=10em}
|
||
|
|
||
|
![Fakt epesní reproduktor](reproduktor.png){width=10em}
|
||
|
|