Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drvinceknight/md2reveal
A script to easily convert (simple) markdown to reveal html.
https://github.com/drvinceknight/md2reveal
Last synced: about 1 month ago
JSON representation
A script to easily convert (simple) markdown to reveal html.
- Host: GitHub
- URL: https://github.com/drvinceknight/md2reveal
- Owner: drvinceknight
- Created: 2013-01-16T17:41:46.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-05T09:40:23.000Z (almost 12 years ago)
- Last Synced: 2024-06-20T00:45:28.597Z (6 months ago)
- Language: Python
- Size: 155 KB
- Stars: 16
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Turning markdown in to reveal slides!
The html 5 slides written with [reveal.js](https://github.com/hakimel/reveal.js) look awesome. They also allow for markdown. This script takes advantage of that and writes out the entire html file (preamble etc) needed for a reveal slideshow taking a markdown file as an input.
The markdown file shold seperate slides using the `#` symbol:
#Title of first slide
Some markdown#Title of second slide
Some more markdown
Note that at the moment no other titles can be indlucded (i.e. don't use '##', '###' etc...).
The idea behind this is that markdown is a great language for writing basic material. Using [pandoc]() you can obtain a bunch of other files from a markdown file:
- LaTeX
- html
- docxPandoc allows you to create various html 5 slides (not reveal which is my current favorite) as well but I didn't like how it actually did so. This small script takes care of that.
Here's some markdown code:
#The Plan
Class schedule:
- 0900 - 0920: Group presents solution to challenge (R)
- 0920 - 0940: Class discussion (R)
- 0940 - 1040: Lab session (R)
- 1040 - 1100: Break
- 1100 - 1120: Group presents solution to challenge (SAS)
- 1120 - 1140: Class discussion (SAS)
- 1140 - 1040: Lab session (SAS)Here's the corresponding reveal slide:
![reveal_output](https://github.com/drvinceknight/md2reveal/blob/master/reveal_output.png?raw=true)# Usage
when-changed input_file.md [output_file.html]
when-changed input_file.md [output_file.html] -a AUTHOR -t TITLE -d DESCRIPTION# License Information
This work is licensed under a [Creative Commons Attribution-ShareAlike 3.0](http://creativecommons.org/licenses/by-sa/3.0/us/) license. You are free to:* Share: copy, distribute, and transmit the work,
* Remix: adapt the workUnder the following conditions:
* Attribution: You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
* Share Alike: If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.When attributing this work, please include me.