diff options
Diffstat (limited to 'content/notes/2023-06-21-presentations-with-markdown.md')
| -rw-r--r-- | content/notes/2023-06-21-presentations-with-markdown.md | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/content/notes/2023-06-21-presentations-with-markdown.md b/content/notes/2023-06-21-presentations-with-markdown.md deleted file mode 100644 index 49ea53e..0000000 --- a/content/notes/2023-06-21-presentations-with-markdown.md +++ /dev/null | |||
| @@ -1,78 +0,0 @@ | |||
| 1 | --- | ||
| 2 | title: "Simple presentations with Markdown" | ||
| 3 | url: presentations-with-markdown.html | ||
| 4 | date: 2023-06-21T08:54:48+02:00 | ||
| 5 | type: note | ||
| 6 | draft: false | ||
| 7 | tags: [random] | ||
| 8 | --- | ||
| 9 | |||
| 10 | A simple way to make presentations without using desktop apps or using online | ||
| 11 | services is https://github.com/remarkjs/remark. | ||
| 12 | |||
| 13 | First 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 | |||
| 55 | Now the markdown file `presentation.md` with presenetation. `---` is used to | ||
| 56 | separate slides. Other stuff is just pure markdown. | ||
| 57 | |||
| 58 | ```md | ||
| 59 | class: center, middle | ||
| 60 | |||
| 61 | # Main title of the presentation | ||
| 62 | |||
| 63 | --- | ||
| 64 | |||
| 65 | # Fist slide | ||
| 66 | |||
| 67 | Eveniet 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 | ``` | ||
