nevereverever.de/pandoc.md

209 lines
5 KiB
Markdown

---
title: Testing pandoc markdown capabilities
subtitle: Things I hope just work
author: Never
email: n.gude@posteo.de
date: 2025-07-25
summary: Pandocs wonderful Markdown features tested out.
---
# Level 1 Heading
A link to a Heading [Level 4 Heading] followed by another paragraph.
* fruits
Everything is a fruit
+ apples
- macintosh
- red delicious
+ pears
+ peaches
* vegetables
+ broccoli
+ chard
1. first
2. second
3. third
i. subone
ii. subtwo
iii. subthree
- [ ] an unchecked task list item
- [x] checked item
Lorem _ipsum dolor_ sit amet, consectetur *adipi*scing elit. Integer nisl enim, condimentum ~~vitae lacus vel~~, semper efficitur est. Cras pretium porta luctus. __Nulla iaculis__ nisi at quam varius, et con**sequat** lorem blandit. Ut tincidunt leo sit amet velit lobortis, et blandit metus mollis. Nam H~2~O tristique ex a quam aliquet, eget 2^10^ vehicula sapien `rhoncus`. Aliquam `return 0;`{.c} sodales pretium auctor. [Aliquam convallis]{.smallcaps} sodales [elementum]{.mark}.
```c
#include <stdio.h>
// TODO: A funny comment
int main() {
char greetings[] = {'H', 'e', 'l', 'l', 'o', ' ', 'W', 'o', 'r', 'l', 'd', '!', '\0'};
char greetings2[] = "Hello World!";
printf("%zu\n", sizeof(greetings));
printf("%zu\n", sizeof(greetings2));
return 0;
}
```
Aenean eros lacus, volutpat at molestie vitae, pretium eu diam. Quisque sit $1 + 2 + 3 + \cdots + n$ amet nisl ut dolor congue sodales.
$$
\sum_{i=1}^{n} i = \frac{n (n + 1)}{2}
$$
## Level 2 Heading
> This is a block quote with
> two lines and a
>
> 1. List item
> 2. Another list item
>
> > And a nested block quote
>
> Yeah
Term 1
: Definition 1
Term 2 with *inline markup*
: Definition 2
{ some code, part of Definition 2 }
Third paragraph of definition 2.
Term 1
~ Definition 1
Term 2
~ Definition 2a
~ Definition 2b
### Level 3 Heading
A little poem
| The limerick packs laughs anatomical
| In space that is quite economical.
| But the good ones I've seen
| So seldom are clean
| And the clean ones so seldom are comical
* * * *
(@) My first example will be numbered (1).
(@good) My second example will be numbered (2).
Explanation of examples.
(@) My third example will be numbered (3).
As (@good) illustrates, ...
---------------
#### Level 4 Heading
Right Left Center Default
------- ------ ---------- -------
12 12 12 12
123 123 123 123
1 1 1 1
Table: Demonstration of simple table syntax.
Following is a multiline table
-------------------------------------------------------------
Centered Default Right Left
Header Aligned Aligned Aligned
----------- ------- --------------- -------------------------
First row 12.0 Example of a row that
spans multiple lines.
Second row 5.0 Here's another one. Note
the blank line between
rows.
-------------------------------------------------------------
Table: Here's the caption. It, too, may span
multiple lines.
Then we have a Grid table
+---------------------+-----------------------+
| Location | Temperature 1961-1990 |
| | in degree Celsius |
| +-------+-------+-------+
| | min | mean | max |
+:====================+======:+======:+======:+
| Antarctica | -89.2 | N/A | 19.8 |
+---------------------+-------+-------+-------+
| Earth | -89.2 | 14 | 56.7 |
+---------------------+-------+-------+-------+
Table: Grid table
An a Pipe table
| Right | Left | Default | Center |
|------:|:-----|---------|:------:|
| 12 | 12 | 12 | 12 |
| 123 | 123 | 123 | 123 |
| 1 | 1 | 1 | 1 |
: Demonstration of pipe table syntax.
##### Level 5 Heading
<https://google.com>
<sam@green.eggs.ham>
[my label 1]: index.html "My title, optional"
[my label 2]: .
[my label 3]: https://fsf.org (The Free Software Foundation)
[my label 4]: index.html#articles 'A title in single quotes'
Link to [my label 1] and [my label 2] and [my label 3] and [my label 4]
This is an [inline link](/url), and here's [one with
a title](https://fsf.org "click here for a good time!") and [Write me!](mailto:sam@green.eggs.ham)
![The wonderful shork](images/shork.png "the shork"){width=20%}
Here is a footnote reference,[^1] and another.[^longnote]
[^1]: Here is the footnote.
[^longnote]: Here's one with multiple blocks.
Subsequent paragraphs are indented to show that they
belong to the previous footnote.
{ some.code }
The whole paragraph can be indented, or just the first
line. In this way, multi-paragraph footnotes work like
multi-paragraph list items.
This paragraph won't be part of the note, because it
isn't indented.
###### Level 6 Heading
::: Warning ::::::
This is a warning.
::: Danger
This is a warning within a warning.
:::
::::::::::::::::::