aboutsummaryrefslogtreecommitdiff
path: root/content/notes/presentations-with-markdown.md
diff options
context:
space:
mode:
authorMitja Felicijan <m@mitjafelicijan.com>2023-07-12 18:35:08 +0200
committerMitja Felicijan <m@mitjafelicijan.com>2023-07-12 18:35:08 +0200
commit23a56bd50b04211da3cab45f72c3390711b2416b (patch)
treeab9a4a0136b4cce06dba7d853e296f682f807dbb /content/notes/presentations-with-markdown.md
parentcecb4b48a39a3558979b9c4b50e45bf605a3684e (diff)
downloadmitjafelicijan.com-23a56bd50b04211da3cab45f72c3390711b2416b.tar.gz
Moved notes and posts into subfolders
Diffstat (limited to 'content/notes/presentations-with-markdown.md')
-rw-r--r--content/notes/presentations-with-markdown.md78
1 files changed, 78 insertions, 0 deletions
diff --git a/content/notes/presentations-with-markdown.md b/content/notes/presentations-with-markdown.md
new file mode 100644
index 0000000..49ea53e
--- /dev/null
+++ b/content/notes/presentations-with-markdown.md
@@ -0,0 +1,78 @@
1---
2title: "Simple presentations with Markdown"
3url: presentations-with-markdown.html
4date: 2023-06-21T08:54:48+02:00
5type: note
6draft: false
7tags: [random]
8---
9
10A simple way to make presentations without using desktop apps or using online
11services is https://github.com/remarkjs/remark.
12
13First create `index.html` and be sure you make changes to `config` variable.
14
15```html
16<!DOCTYPE html>
17<html>
18
19<head>
20 <title></title>
21 <meta charset="utf-8">
22 <style>
23 body {
24 font-family: 'SF Pro Display';
25 }
26
27 .remark-code,
28 .remark-inline-code {
29 font-family: 'SF Mono';
30 font-size: medium;
31 background-color: gainsboro;
32 border-radius: 5px;
33 padding: 0 5px;
34 }
35 </style>
36</head>
37
38<body>
39 <textarea id="source"></textarea>
40 <script src="https://remarkjs.com/downloads/remark-latest.min.js"></script>
41 <script>
42 const config = {
43 title: 'My presentation',
44 file: 'presentation.md',
45 };
46
47 document.title = config.title;
48 remark.create({ sourceUrl: config.file });
49 </script>
50</body>
51
52</html>
53```
54
55Now the markdown file `presentation.md` with presenetation. `---` is used to
56separate slides. Other stuff is just pure markdown.
57
58```md
59class: center, middle
60
61# Main title of the presentation
62
63---
64
65# Fist slide
66
67Eveniet mollitia nemo architecto rerum aut iure iste. Sit nihil nobis libero iusto fugit nam laudantium ut. Dignissimos corrupti laudantium nisi.
68
69- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
70- Integer aliquet mauris a felis fringilla, ut congue massa finibus.
71
72---
73
74# Slide two
75
76- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
77- Vestibulum eget leo ac dolor venenatis pulvinar.
78```