-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtestSlides.txt
81 lines (61 loc) · 1.55 KB
/
testSlides.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Large header
~
~
~
~ A centered paragraph, a bit further down the page
> This will not be rendered
> Useful for comments
----
# Slide number two
------
--
- A list item
--
- Another list item with _emphasised_ text
--
- And another list item with **more emphasised** text
--
- And another, with ***even more emphasised*** text!
--
- This list item has code: `lang=javascript var a = b(1, 2);`
--
- This one has code that isn't highlighted: `echo $stuff;` (that's php)
----
# Slide three: Yay ascii art!
_____________
/ _________ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| |_________| |
| (o) |
\_____________/
--
(It's a smartphone)
----
# Slide four, with a large code block
```javascript
// Load slides from the provided argument
// Error handling is for people who make errors
// A line consisting of four or more dashes separates slides
// A line consisting of two slashes separates slide content
var rawSlides = fs.readFileSync(process.argv[2], { encoding: 'UTF-8' })
.split(/\n----\n/)
.reduce(function(collectedSlides, str) {
str = str.trim();
str.split('\n--\n').reduce(function(a, b) {
var currentSlide = a + '\n' + b;
collectedSlides.push(currentSlide);
return currentSlide;
}, '');
return collectedSlides;
}, []);
```
----
# Slide five with an image
