Also upravené testovací soubory, protože se nepatrně změnilo api commandů.
This commit is contained in:
parent
b1f8f6e28c
commit
f8c1cac18e
4 changed files with 30 additions and 14 deletions
8
test/latex-test.md
Normal file
8
test/latex-test.md
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# H1
|
||||||
|
## H2
|
||||||
|
### H3
|
||||||
|
#### H4
|
||||||
|
##### H5
|
||||||
|
###### H6
|
||||||
|
|
||||||
|
---
|
|
@ -1,7 +1,7 @@
|
||||||
```python {define=nop}
|
```python {define=nop}
|
||||||
appendChildren(element.content)
|
return element.content
|
||||||
```
|
```
|
||||||
|
|
||||||
```python {define=opendatatask}
|
```python {define=opendatatask}
|
||||||
println("Toto je praktická open-data úloha. V [odevzdávátku](https://ksp.mff.cuni.cz/h/odevzdavatko/) si necháte vygenerovat vstupy a odevzdáte příslušné výstupy. Záleží jen na vás, jak výstupy vyrobíte.")
|
return import_md_list("Toto je praktická open-data úloha. V [odevzdávátku](https://ksp.mff.cuni.cz/h/odevzdavatko/) si necháte vygenerovat vstupy a odevzdáte příslušné výstupy. Záleží jen na vás, jak výstupy vyrobíte.")
|
||||||
```
|
```
|
||||||
|
|
|
@ -11,15 +11,13 @@ And things...
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
``` {.python .run}
|
```python {.run}
|
||||||
# I set my own flags!
|
# I set my own flags!
|
||||||
ctx.set_flag("cat", True)
|
context.set_flag("cat", True)
|
||||||
```
|
```
|
||||||
|
|
||||||
``` {.python .run}
|
```python {.run}
|
||||||
println(f"The subdocument's title is \n\n# {ctx.get_metadata('title')}")
|
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')}")
|
||||||
println()
|
|
||||||
println(f"The subdocument's subtitle is \n\n## {ctx.get_metadata('subtitle')}")
|
|
||||||
```
|
```
|
||||||
|
|
||||||
```markdown {.group}
|
```markdown {.group}
|
||||||
|
@ -49,7 +47,7 @@ $$
|
||||||
$$
|
$$
|
||||||
|
|
||||||
|
|
||||||
![This is a figure, go figure...](logo.svg){width=25%}
|
![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.pdf){width=50%}
|
||||||
|
|
||||||
|
|
20
test/test.md
20
test/test.md
|
@ -3,10 +3,16 @@ title: 'Wooooo a title'
|
||||||
subtitle: 'A subtitle'
|
subtitle: 'A subtitle'
|
||||||
are_we_there_yet: False
|
are_we_there_yet: False
|
||||||
language: "en"
|
language: "en"
|
||||||
|
lang: "en"
|
||||||
---
|
---
|
||||||
[#test-files/test-import.md]{}
|
[#test-files/test-import.md]{}
|
||||||
|
|
||||||
# Hello world!
|
# Hello world!
|
||||||
|
## H2
|
||||||
|
### H3
|
||||||
|
#### H4
|
||||||
|
##### H5
|
||||||
|
###### H6
|
||||||
|
|
||||||
This is an *example* **yay**!
|
This is an *example* **yay**!
|
||||||
|
|
||||||
|
@ -25,14 +31,14 @@ This should only be shown to cats
|
||||||
:::
|
:::
|
||||||
|
|
||||||
```python {.run}
|
```python {.run}
|
||||||
ctx.set_flag("cat", True)
|
context.set_flag("cat", True)
|
||||||
```
|
```
|
||||||
|
|
||||||
```python {.run}
|
```python {.run}
|
||||||
println(f"The main document's title is '{ctx.get_metadata('title')}'")
|
context.set_metadata("a", {})
|
||||||
ctx.set_metadata("a", {})
|
context.set_metadata("a.b", {})
|
||||||
ctx.set_metadata("a.b", {})
|
context.set_metadata("a.b.c", "Bruh **bruh** bruh")
|
||||||
ctx.set_metadata("a.b.c", "Bruh **bruh** bruh")
|
return import_md_list(f"The main document's title is '{context.get_metadata('title')}'")
|
||||||
```
|
```
|
||||||
|
|
||||||
```python {style=native}
|
```python {style=native}
|
||||||
|
@ -68,6 +74,8 @@ V pravém jízdním bruhu.
|
||||||
|
|
||||||
[!nop]{a=b}<!-- A special command! WOW -->
|
[!nop]{a=b}<!-- A special command! WOW -->
|
||||||
|
|
||||||
|
[Hehehehe čeština bružek]{lang=cs}
|
||||||
|
|
||||||
> OOO a blockquote mate init
|
> OOO a blockquote mate init
|
||||||
>
|
>
|
||||||
>> Nesting??
|
>> Nesting??
|
||||||
|
@ -83,6 +91,8 @@ A link with the link in the link: <https://bruh.com>
|
||||||
|
|
||||||
H~2~O is a liquid. 2^10^ is 1024.
|
H~2~O is a liquid. 2^10^ is 1024.
|
||||||
|
|
||||||
|
[Kuchařka](ksp:///kucharky/uvodni)
|
||||||
|
|
||||||
[Underline]{.underline}
|
[Underline]{.underline}
|
||||||
|
|
||||||
:::{only=html}
|
:::{only=html}
|
||||||
|
|
Loading…
Reference in a new issue