title: A brief demonstration of minislides subtitle: Simple presentations using HTML/CSS author: Satvik Saha affiliation: Indian Institute of Science Education and Research, Kolkata
This is a sentence.
This is another sentence, with bold and italics.
This is a blockquote!
This sentence has been struck off.
This is a hyperlink to the GitHub repository of this project.
This slide contains a block of python code.
import marko
with open("markdown.md", "r") as f:
text = f.read()
html = marko.convert(text)
The with open(...) as f
construct ensures that the file is closed after reading from it.
This slide demonstrates the use of math expressions, supported by
Let
You can use the center
keyword immediately after beginning a slide in your markdown to center all content within it, like in the "Images" slide.
---
center
# Centered slide
Everything is centered here.
Alternatively, use raw tags with the centered
class to center individual headings, paragraphs, and lists within a slide.
<p class="centered">This is centered text</p>
Note that markdown syntax does not work within raw HTML tags!
This is an unordered list.
- Item 1
- Item 2
- Item 3
This is an ordered list
- Item 1
- Item 2
- Item 3
Left aligned | Centered | Right aligned |
---|---|---|
Item 1 | Item 2 | Item 3 |
Item 4 | Item 5 | Item 4 |
Item 5 | Item 6 | Item 7 |
center
This is a random image from unsplash.
The next slide shows a large image. Do this by using a raw image tag with the large
class.
<img class="large"
src="https://source.unsplash.com/featured/?space"
alt="This is a large image">