Before Width: | Height: | Size: 168 KiB After Width: | Height: | Size: 168 KiB |
Before Width: | Height: | Size: 462 KiB After Width: | Height: | Size: 466 KiB |
Before Width: | Height: | Size: 265 KiB After Width: | Height: | Size: 265 KiB |
@ -0,0 +1,38 @@ |
|||
#!/bin/bash |
|||
set -e |
|||
|
|||
echo "##" |
|||
echo "# building tests" |
|||
echo "##" |
|||
echo "" |
|||
|
|||
containsElement () { |
|||
local e match="$1" |
|||
shift |
|||
for e; do [[ "$e" == "$match" ]] && return 0; done |
|||
return 1 |
|||
} |
|||
|
|||
# these examples are skipped because they don't run on travis (for now) |
|||
skippedExamples=() |
|||
|
|||
# loop all files in the current folder |
|||
for f in *; do |
|||
# run only for folders |
|||
if [ -d "$f" ]; then |
|||
|
|||
if containsElement "$f" "${skippedExamples[@]}"; then |
|||
echo "skipping '$f'" |
|||
echo "" |
|||
else |
|||
echo "building '$f'" |
|||
cd "$f" |
|||
echo " - running pandoc build script" |
|||
bash "$PWD/build.sh" |
|||
echo " - generating preview" |
|||
pdftoppm -r 150 -png "document.pdf" > "preview.png" |
|||
echo "" |
|||
cd ".." |
|||
fi |
|||
fi |
|||
done |
@ -0,0 +1 @@ |
|||
pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --listings |
@ -0,0 +1,32 @@ |
|||
--- |
|||
title: "Test: Heading" |
|||
author: [Author] |
|||
date: "2022-11-24" |
|||
subject: "Markdown" |
|||
keywords: [Markdown, Example, Text, Heading] |
|||
lang: "en" |
|||
... |
|||
|
|||
# Test: Heading |
|||
|
|||
## Setext-style headings |
|||
|
|||
level one |
|||
========= |
|||
|
|||
level two |
|||
--------- |
|||
|
|||
## ATX-style headings |
|||
|
|||
# level one |
|||
|
|||
## level two |
|||
|
|||
### level three |
|||
|
|||
#### level four |
|||
|
|||
##### level five |
|||
|
|||
###### level six |
After Width: | Height: | Size: 41 KiB |
@ -0,0 +1 @@ |
|||
pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --listings |
@ -0,0 +1,28 @@ |
|||
--- |
|||
title: "Test: Horizontal Rule" |
|||
author: [Author] |
|||
date: "2022-11-24" |
|||
subject: "Markdown" |
|||
keywords: [Markdown, Example, Text, Horizontal Rule] |
|||
lang: "en" |
|||
... |
|||
|
|||
# Test: Horizontal Rule |
|||
|
|||
## Horizontal Rule with `*` (asterisk) |
|||
|
|||
**** |
|||
|
|||
********** |
|||
|
|||
## Horizontal Rule with `-` (minus) |
|||
|
|||
---- |
|||
|
|||
---------- |
|||
|
|||
## Horizontal Rule with `_` (underscore) |
|||
|
|||
____ |
|||
|
|||
__________ |
After Width: | Height: | Size: 37 KiB |
@ -0,0 +1 @@ |
|||
pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --listings |
@ -0,0 +1,29 @@ |
|||
--- |
|||
title: "Test: Definition List" |
|||
author: [Author] |
|||
date: "2022-11-24" |
|||
subject: "Markdown" |
|||
keywords: [Markdown, Example, Text, List, Definition List] |
|||
lang: "en" |
|||
... |
|||
|
|||
# Test: Definition List |
|||
|
|||
## Definition List with single definition |
|||
|
|||
Apple |
|||
: Pomaceous fruit of plants of the genus Malus in |
|||
the family Rosaceae. |
|||
|
|||
Orange |
|||
: The fruit of an evergreen tree of the genus Citrus. |
|||
|
|||
## Definition List with multiple definitions |
|||
|
|||
Apple |
|||
: Pomaceous fruit of plants of the genus Malus in |
|||
the family Rosaceae. |
|||
: An American computer company. |
|||
|
|||
Orange |
|||
: The fruit of an evergreen tree of the genus Citrus. |
After Width: | Height: | Size: 65 KiB |
@ -0,0 +1 @@ |
|||
pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --listings |
@ -0,0 +1,43 @@ |
|||
--- |
|||
title: "Lists" |
|||
author: [Author] |
|||
date: "2022-11-24" |
|||
subject: "Markdown" |
|||
keywords: [Markdown, Example, Text, List, Ordered List] |
|||
lang: "en" |
|||
... |
|||
|
|||
# Test: Lists |
|||
|
|||
## Ordered list with number and period |
|||
|
|||
2. two |
|||
3. three |
|||
4. four |
|||
|
|||
## Ordered list with number and bracket |
|||
|
|||
8) eight |
|||
9) nine |
|||
10) ten |
|||
|
|||
## Ordered list with roman numerals |
|||
|
|||
II. one |
|||
III. two |
|||
IV. three |
|||
|
|||
## Ordered nested list |
|||
|
|||
1. one |
|||
1) orange |
|||
2) apple |
|||
* pine |
|||
* maple |
|||
3) orange |
|||
2. two |
|||
1. sunny |
|||
II. two |
|||
III. three |
|||
IV. four |
|||
2. rainy |
After Width: | Height: | Size: 65 KiB |
@ -0,0 +1 @@ |
|||
pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --listings |
@ -0,0 +1,34 @@ |
|||
--- |
|||
title: "Test: Task List" |
|||
author: [Author] |
|||
date: "2022-11-24" |
|||
subject: "Markdown" |
|||
keywords: [Markdown, Example, Text, List, Task List] |
|||
lang: "en" |
|||
... |
|||
|
|||
# Test: Task List |
|||
|
|||
## Task list unchecked |
|||
|
|||
- [ ] one |
|||
- [ ] two |
|||
- [ ] three |
|||
|
|||
## Task list checked |
|||
|
|||
- [x] one |
|||
- [x] two |
|||
- [x] three |
|||
|
|||
## Task list nested |
|||
|
|||
- [x] one |
|||
- [ ] orange |
|||
- [ ] apple |
|||
- [x] pine |
|||
- [x] maple |
|||
- [ ] mango |
|||
- [ ] two |
|||
- [x] sunny |
|||
- [ ] rainy |
After Width: | Height: | Size: 48 KiB |
@ -0,0 +1 @@ |
|||
pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --listings |
@ -0,0 +1,43 @@ |
|||
--- |
|||
title: "List Unordered" |
|||
author: [Author] |
|||
date: "2022-11-24" |
|||
subject: "Markdown" |
|||
keywords: [Markdown, Example, Text, List, Unordered List] |
|||
lang: "en" |
|||
... |
|||
|
|||
# Test: List Unordered |
|||
|
|||
## Unordered list with dash |
|||
|
|||
- one |
|||
- two |
|||
- three |
|||
|
|||
## Unordered list with asterisk |
|||
|
|||
* one |
|||
* two |
|||
* three |
|||
|
|||
## Unordered list with plus sign |
|||
|
|||
+ one |
|||
+ two |
|||
+ three |
|||
|
|||
## Unordered nested list |
|||
|
|||
- one |
|||
- orange |
|||
- apple |
|||
* pine |
|||
* maple |
|||
- orange |
|||
- two |
|||
+ sunny |
|||
* four |
|||
* five |
|||
* six |
|||
+ rainy |
After Width: | Height: | Size: 60 KiB |