2023-01-31 00:44:48 +01:00
|
|
|
---
|
|
|
|
title: A subfile!
|
|
|
|
---
|
2023-01-30 01:46:50 +01:00
|
|
|
I am a little piece of content
|
|
|
|
|
|
|
|
# With a title!
|
|
|
|
|
|
|
|
And things...
|
|
|
|
|
2023-02-03 22:54:33 +01:00
|
|
|
:::{if=cat}
|
|
|
|
|
|
|
|
:::
|
|
|
|
|
2023-07-22 01:05:44 +02:00
|
|
|
```python {.run}
|
2023-01-30 01:46:50 +01:00
|
|
|
# I set my own flags!
|
2023-07-22 01:05:44 +02:00
|
|
|
context.set_flag("cat", True)
|
2023-01-30 01:46:50 +01:00
|
|
|
```
|
|
|
|
|
2023-07-22 01:05:44 +02:00
|
|
|
```python {.run}
|
|
|
|
return import_md_list(f"The subdocument's title is\n\n# {context.get_metadata('title')}\n\nThe subdocument's subtitle is\n\n## {context.get_metadata('subtitle')}")
|
2023-01-31 14:35:44 +01:00
|
|
|
```
|
2023-07-23 14:52:52 +02:00
|
|
|
```python {.run}
|
|
|
|
return [
|
|
|
|
pf.Para(*parse_string("The subdocument's title is")),
|
|
|
|
pf.Header(*parse_string(context.get_metadata('title')), level=1),
|
|
|
|
pf.Para(*parse_string("The subdocument's subtitle is")),
|
|
|
|
pf.Header(*parse_string(context.get_metadata('subtitle')), level=2)
|
|
|
|
]
|
|
|
|
```
|
2023-01-31 14:35:44 +01:00
|
|
|
|
2023-02-07 02:47:48 +01:00
|
|
|
```markdown {.group}
|
|
|
|
---
|
2023-08-20 00:15:13 +02:00
|
|
|
lang: "cs"
|
2023-02-07 02:47:48 +01:00
|
|
|
---
|
2023-02-02 16:39:18 +01:00
|
|
|
Tak toto je "v prádelně" pánové!
|
|
|
|
```
|
|
|
|
|
2023-02-07 02:47:48 +01:00
|
|
|
```markdown {.group}
|
|
|
|
---
|
2023-08-20 00:15:13 +02:00
|
|
|
lang: "en"
|
2023-02-07 02:47:48 +01:00
|
|
|
---
|
2023-02-02 16:39:18 +01:00
|
|
|
This is "in a laundry room" gentlemen!
|
2023-02-01 01:32:36 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
I am a duck.
|
|
|
|
|
2023-01-30 01:46:50 +01:00
|
|
|
:::{if=cat}
|
|
|
|
This should be only shown to included cats.
|
|
|
|
:::
|
2023-02-03 22:54:33 +01:00
|
|
|
|
2023-07-23 19:27:07 +02:00
|
|
|
{width=50px}
|
2023-02-05 17:13:50 +01:00
|
|
|
|
|
|
|
$$
|
|
|
|
\def\eqalign#1{NO, just, nooooo}
|
|
|
|
\eqalign{}
|
|
|
|
$$
|
2023-02-06 16:56:52 +01:00
|
|
|
|
|
|
|
|
2024-02-17 18:07:47 +01:00
|
|
|
<!--There is an inline *emphasis with $math \error$*.-->
|
|
|
|
|
|
|
|
<!--
|
|
|
|
```python {.run}
|
|
|
|
print("bruh")
|
|
|
|
raise Exception("Jsem piča")
|
|
|
|
```
|
|
|
|
-->
|
|
|
|
|
2023-09-21 17:22:59 +02:00
|
|
|
{width=25%}What
|
2023-02-06 16:56:52 +01:00
|
|
|
{width=50%}
|
2024-02-17 11:18:11 +01:00
|
|
|
{width=10em}
|
|
|
|
{width=10em file-width=1000}
|
2023-02-06 16:56:52 +01:00
|
|
|
|
2024-02-17 11:18:11 +01:00
|
|
|
```
|
2023-02-06 16:56:52 +01:00
|
|
|
|
|
|
|
|
2024-02-17 11:18:11 +01:00
|
|
|
{width=50%}
|
|
|
|
|
2023-02-06 16:56:52 +01:00
|
|
|
|
|
|
|
|