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